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) Unconstrained text formatting is not correctly highlighted #2869

Closed
ggrossetie opened this issue Nov 15, 2020 · 0 comments · Fixed by #2870 or #2914
Closed

(asciidoc) Unconstrained text formatting is not correctly highlighted #2869

ggrossetie opened this issue Nov 15, 2020 · 0 comments · Fixed by #2870 or #2914
Labels
bug help welcome Could use help from community language

Comments

@ggrossetie
Copy link
Contributor

ggrossetie commented Nov 15, 2020

Describe the issue

AsciiDoc supports constrained and unconstrained syntax. For instance, when using the bold syntax, you can mark a word or phrase as bold by enclosing it in a single set of asterisks (e.g., *word*) (constrained). You can mark bounded characters (i.e., characters within a word) as bold by enclosing them in a set of double asterisks (e.g., char**act**ers) (unconstrained).

Which language seems to have the issue?

asciidoc

Sample Code to Reproduce

bold **un**constrained text.

italic __un__constrained text.

monospace ``un``constrained text.

Expected behavior

It should produce the following result:

bold <span class="hljs-strong">**un**</span>constrained text.

italic <span class="hljs-emphasis">__un__</span>constrained text.

monospace <span class="hljs-code">``un``</span>constrained text.

Additional context

https://asciidoctor-docs.netlify.app/asciidoc/current/text/

@ggrossetie ggrossetie added bug help welcome Could use help from community language labels Nov 15, 2020
ggrossetie added a commit to ggrossetie/highlight.js that referenced this issue Nov 15, 2020
ggrossetie added a commit to ggrossetie/highlight.js that referenced this issue Nov 17, 2020
joshgoebel pushed a commit to ggrossetie/highlight.js that referenced this issue Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome Could use help from community language
Projects
None yet
1 participant