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

Syntax highlighting: multi-line comment broken after first line #2291

Closed
rapodaca opened this issue Dec 2, 2016 · 1 comment
Closed

Syntax highlighting: multi-line comment broken after first line #2291

rapodaca opened this issue Dec 2, 2016 · 1 comment

Comments

@rapodaca
Copy link

rapodaca commented Dec 2, 2016

Running Hexo 3.2.2, make a directory, then hexo init.

Edit hello.world.md by adding the following:

[triple backtick]java
/**
 * MULTILINE!
 */
public class Hello {

}
[triple backtick]

Replace [triple backtick] with three literal backtick characters.

Only the first line ("/**") is highlighted - the rest is not. I expect the entire comment to be highlighted as a comment.

Ideas?

FWIW, the same block renders as expected when using the current version of highlight.js directly.

@NoahDragon
Copy link
Member

It is a known issue in hexojs/hexo-util#10

NoahDragon pushed a commit to hexojs/hexo-util that referenced this issue Mar 29, 2017
…s/hexo#2291) (#22)

* Correct highlighting of multi-line element (fix #10)

* Correct highlighting of multi-line element with auto detect

* Add HTML validation to each test case

If this validation was implemented, the issue #10 might be detected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants