1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09: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
Notes: sideshowbarker 2024-07-18 01:32:35 +09:00

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;