gaearon / gitbook-plugin-prism

Gitbook plugin for Prism highlighting
Apache License 2.0
88 stars 26 forks source link

Ignore certain languages from being parsed by Prism #28

Closed howlowck closed 7 years ago

howlowck commented 7 years ago

There are certain gitbook plugins that uses the three back-ticks to denote the code to be rendered. See mermaid-full usage And prism gives a warning like:

Failed to load prism syntax: graph
{ Error: Cannot find module 'prismjs/components/prism-graph.js' ...

It would be nice to have an option to ignore certain "languages" from being parsed by prism.

robmcguinness commented 7 years ago

I think this is reasonable. Little busy right now but maybe I can make updates to the framework early next week this this feature.

howlowck commented 7 years ago

I made the changes. Let me know if there is anything else needed to improved the PR. Thanks!

JoeyBling commented 5 years ago

Hi, how did you solve it?