-
-
Notifications
You must be signed in to change notification settings - Fork 497
Closed
Labels
Description
We get LinkInline.Title of "" with CommonMark Example 443.
[link](/uri)
As LinkInline.Title is typed as string? rather than string, it is weird.
markdig/src/Markdig/Renderers/Html/Inlines/LinkInlineRenderer.cs
Lines 72 to 77 in 3535701
| if (renderer.EnableHtmlForInline && !string.IsNullOrEmpty(link.Title)) | |
| { | |
| renderer.WriteRaw(" title=\""); | |
| renderer.WriteEscape(link.Title); | |
| renderer.WriteRaw('"'); | |
| } |
HtmlRenderer render correct result for [link](/uri) with current parse behavior, but it will generate incorrect result for [link](/uri "") instead.