ele828 / hexo-prism-plugin

Hexo plugin for code highlighting by prism.js, supporting JSX syntax
204 stars 51 forks source link

Something wrong when code rendered by the plugin #50

Open zengchang233 opened 5 years ago

zengchang233 commented 5 years ago

My plugin config: image

The code render on my blog: image

Does anybody know what wrong it is?

cresumerjang commented 5 years ago

I got a same issue. It doesn't work even I've changed mode in config to "realtime". all that code type is string doesn't wrap any html tag like down below.

<code class="language-language-js">{
    constructor: ƒ (),
    __proto__: Object
}
</code>

@ele828 Could check this issue?

Zhou-Bill commented 4 years ago

u can add "hexo-inject" in package.json in dependencies, you can see hexo-prism-plus for Installation note