Open cyjake opened 10 years ago
Have you looked into using the nodejs pygments wrapper?
That'll require a Python installation and some stuff like pip install pygments
, right?
Maybe darko should support the option of specifying syntax highlighter like current version of Jekyll. Something like highlighter: highlight.js
or highlighter: pygments
in _config.yml
. If pygments is preferred and the user has no problem installing it, then highlighter: pygments
will suffice.
Found an alternative: https://github.com/thlorenz/peacock
Darko uses highlight.js for syntax highlighting currently. The generated result is not compatible with the result of pygments though. Therefore those styles written for pygments won't be usable if some one is switching from Jekyll to Darko.
There are pygments compatible Node modules available, such as peacock. But it only highlights syntax of JavaScript.
Any thoughts?