Skip to content

[Request] Support for embedded markup in code #4324

@reschke

Description

@reschke

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:

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.

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