Browse Source

LibMarkdown: Allow nested links

This fixes an issue where the linked images in our README.md didn't
get turned into images.
Andreas Kling 3 years ago
parent
commit
409b20e316
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibMarkdown/Text.cpp

+ 1 - 1
Userland/Libraries/LibMarkdown/Text.cpp

@@ -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;