Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asciidoc highlighting not working from Pandoc's highlighting / mark class #10511

Closed
iandol opened this issue Jan 6, 2025 · 0 comments
Closed
Labels

Comments

@iandol
Copy link
Contributor

iandol commented Jan 6, 2025

According to asciidoc doc:

When text is enclosed in a pair of single or double hash symbols (#), and no role is assigned to it, the text will be rendered as highlighted (aka marked) text for notation purposes.
https://docs.asciidoctor.org/asciidoc/latest/text/highlight/

BUT Pandoc prepends a role [.mark] which breaks the highlighing when converted to HTML:

> pandoc -t asciidoc

[test]{.mark} text.

[.mark]#test# text.

The output should just be #test# text.

https://pandoc.org/MANUAL.html#highlighting

@iandol iandol added the bug label Jan 6, 2025
@jgm jgm closed this as completed in 1cfccfa Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant