Skip to content

LinkReferenceDefinition has null sourceSpans if title included #292

@tjpalmer

Description

@tjpalmer

Steps to reproduce the problem (provide example Markdown if applicable):

[label][1]

[1]: #not-code "Text"

And I've set IncludeSourceSpans.BLOCKS_AND_INLINES when building the parser.

Expected behavior:

The LinkReferenceDefinition has a correct sourceSpans set.

Actual behavior:

The sourceSpans is null on the LinkReferenceDefinition instance.

Note that this alternative without a title does have valid sourceSpans on the LinkReferenceDefinition:

[label][1]

[1]: #not-code

Using "org.commonmark:commonmark:0.21.0".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions