Skip to content

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

@rapodaca

Description

@rapodaca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions