This can be handy with markdown-loader. This loader works well with its HTML output. We just replace the contents of <code>
blocks with highlight.js compatible output.
var html = require('html!highlight!markdown!./README.md');
- Zane Miller - Added missing
hljs
class topre
element - Javier Castro - Add Node.js support
highlight-loader is available under MIT. See LICENSE for more details.