-
Notifications
You must be signed in to change notification settings - Fork 892
Closed
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.coreRelated to the core parser code.Related to the core parser code.
Description
When the markdown source contains an inline HTML comment which contains a markdown link whose text contains markdown formatting, the resulting HTML contains the placeholder for the formatted text.
>>> markdown.markdown("For example <!-- [**Bold link**](http://example.com) -->")
'<p>For example <!-- <a href="http://example.com">\x02klzzwxh:0000\x03</a> --></p>'This is similar to #42, but only occurs when there is formatting in the link text.
Also notable is that this behavior for comments only occurs when the comment does not start a line — HTML comments at the start of a line are not processed for markdown syntax at all.
For a real-world example of this bug, see rust-lang/this-week-in-rust#7299
Metadata
Metadata
Assignees
Labels
bugBug report.Bug report.confirmedConfirmed bug report or approved feature request.Confirmed bug report or approved feature request.coreRelated to the core parser code.Related to the core parser code.