Skip to content

Correctly render reference links in Markdown #13

@zacharysyoung

Description

@zacharysyoung

Putting the following reference links through mdfmt, the output should equal the input:

[full][full]
[collapsed][]
[shortcut]

[collapsed]: u2
[full]: u1
[shortcut]: u3

Currently, mdfmt renders all three link styles inline... while keeping the original link reference definitions:

[full](u1)
[collapsed](u2)
[shortcut](u3)

[collapsed]: u2
[full]: u1
[shortcut]: u3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions