Skip to content

Syntax highlighting is too eagerly converting to HTML entities #18

Closed
@ajpiano

Description

@ajpiano

(Ported from jquery/2012-dev-summit#90)

Seems that syntaxhighligher's JS brush has some "preprocess" regex that is actually just destroying many of our code blocks by converting things to entities, see:

bad entities

@bobholt traced it back to https://github.com/thlorenz/node-syntaxhighlighter/blob/master/lib/scripts/shBrushJScript.js#L23. If that's commented out, the entity conversion isn't happening.

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