Skip to content

Get LinkInline.Title of "" rather than null for [link](/uri) #872

@RamType0

Description

@RamType0

We get LinkInline.Title of "" with CommonMark Example 443.

[link](/uri)

As LinkInline.Title is typed as string? rather than string, it is weird.

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions