1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:17:44 +00:00

LibMarkdown: Allow nested links

This fixes an issue where the linked images in our README.md didn't
get turned into images.
This commit is contained in:
Andreas Kling 2021-11-03 10:21:50 +01:00
parent edb3e71c1b
commit 409b20e316

View file

@ -389,7 +389,7 @@ NonnullOwnPtr<Text::MultiNode> Text::parse_sequence(Vector<Token>::ConstIterator
node->children.append(parse_code(tokens));
break;
}
} else if (!in_link && (*tokens == "[" || *tokens == "![")) {
} else if (*tokens == "[" || *tokens == "![") {
node->children.append(parse_link(tokens));
} else if (in_link && *tokens == "](") {
return node;