-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Is your request related to a specific problem you're having?
Yes.
The solution you'd prefer / feature you'd like to see added...
I'm trying to migrate from prettify (https://github.com/googlearchive/code-prettify), and that has the nice property to preserve markup inside the text to be syntax-highlighted.
See example in:
https://greenbytes.de/tech/webdav/rfc9110.html#field.expect
where names (sometimes) link to their definitions to ABNF excerpts in other sections of the spec.
code-prettify preserves the markup, so links to external and internal resources continue to work.
The main use cases are:
- giving an ABNF production an anchor to link to
- allowing cross-references inside a document
- allowing links to external resources, such as in https://greenbytes.de/tech/webdav/rfc9110.html#uri.references
I understand that this is a hard problem. Note that all my use cases do not require the support of overlapping markup (so an embedded link would always be fully contained inside something that would be recognized as syntax item).
Any alternative solutions you considered...
I couldn't think of any.
Additional context...
See above.