Skip to content

language-regex doesn't work #51

@shreyasminocha

Description

@shreyasminocha

I'm trying to use:

<PrismCode className="language-regex">{`/[a-z]{5}/g`}</PrismCode>

… which outputs:

<code class="  language-regex">/[a-z]{5}/g</code>

language-javascript, however, works perfectly. I know that prism has support for regex, so I'm trying to figure out why it wouldn't work here.


    "prismjs": "^1.20.0",
    "react-prism": "^4.3.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions