Open artempyanykh opened 2 years ago
In pandoc, any text (not just headings) can be decorated with an ID. For example:
- (200 pts) **[Practical exercises]{id="practical-exercises"}**
Could marksman support this?
@reagle how does this work exactly? Is this [<text>]{id="<id>"}
the syntax you need to use to decorate something with an id (basically, wrap it in a link-like thing)?
Hi @artempyanykh.
Pandoc supports two extensions that I use, implicit header references on headings and bracketed spans elsewhere. Neither is in the core CommonMark specification, but bracketed spans are supported in djot, which I hope will become commonplace. I use both extensions and marksman gives warnings of missing targets. I thought there might be a way to turn off these warnings or perhaps it could support these extensions, which brought me to this issue. 😄
@reagle thanks! I like the idea of supporting these extensions. I extracted each into its own issue.
This is a non-standard feature https://www.markdownguide.org/extended-syntax/#heading-ids However it can be useful! For instance, docusaurus (docusaurus.io) understands custom heading IDs.