mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Conversion to HTML does not convert some hyperlinks #672
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @molinch on GitHub (Apr 22, 2024).
Thanks for this awesome lib, we use it in several places and found one issue.
Given the following Markdown:
Hello\n\nIt is me (after 1 hard line break)\n\n<br>\nAnd again me (after 2 hard lines break)\nNow just below, [a link to Google](https://google.fr/)The HTML will not contains an tag for the Markdown link.
Do you have any idea what could lead to this situation?
Maybe you are aware of a workaround we could leverage?
Interestingly having just the following works:
Now just below, [a link to Google](https://google.fr/)@MihaZupan commented on GitHub (Apr 22, 2024):
If you mix HTML tags (
<br>) with markdown, you must make sure to end the HTML block with a blank line.Consider the following examples that differ in new lines:
See https://spec.commonmark.org/0.30/#html-blocks for more details.
@molinch commented on GitHub (Apr 23, 2024):
Thanks a lot @MihaZupan I had no clue, now it is very clear.
KUDOS for writing such a clear and detailed answer. It was extremely helpful.