executablebooks / mdformat

CommonMark compliant Markdown formatter
https://mdformat.rtfd.io
MIT License
416 stars 45 forks source link

Support wikilinks #387

Closed SomeoneSerge closed 1 year ago

SomeoneSerge commented 1 year ago

Context

Projects like Logseq (and Obsidian?) use wikilink-style internal links in markdown documents. Formatting such with mdformat escapes the back-slashes:

❯ mdformat - << EOF
[[Internal link]]
EOF
\[\[Internal link\]\]

Proposal

Tasks and updates

No response

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

SomeoneSerge commented 1 year ago

Related to/instance of: https://github.com/executablebooks/mdformat/issues/112

hukkin commented 1 year ago

Mdformat supports non CommonMark syntax only via plugins. See https://mdformat.readthedocs.io/en/stable/contributors/contributing.html