-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken links in lists, indented text and multiline
When replacing links, we parse the markdown document line by line. When the markdown parsers encounters an indented line, without the context of the surrounding lines, it assumes a code block and does not render the links to html, which means we do not re-write those links. If the link is broken over two lines we also fail to discover it. This patch fixes the issue by changing the processing from line by line to the document as a whole. Fixes: #229 Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
- Loading branch information
1 parent
ceb71dc
commit b67a9e3
Showing
3 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters