ele828 / hexo-prism-plugin

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

How to use prism in markdown file? #36

Closed Logan1x closed 6 years ago

Logan1x commented 6 years ago

There should be a demo for using prism in markdown file.

ele828 commented 6 years ago

The usages of this plugin is basically to put the programming language directly behind the markdown declaration like this

```javascript   // this one
var foo = 'foo';
``` // 

the supported languages are here http://prismjs.com/#languages-list