index.jade
doctype html html head title An Article body include:markdown article.md
article.md
<p class="container">content</p>
现在虽然把article.md文件解析了,但是代码不能实现高亮,请问下如何才能实现代码高亮呢。
闭关修行中......
MarkdownAfter the file parsing is completed, it will be HTMl. It should be possible to directly add PrittyPrint style highlighting code to HTML.
Markdown
HTMl
PrittyPrint
Or you can use Remark.js directly in HTML to display the markdown file on the client, so there is no need to include jade in markdown.
Remark.js
markdown
jade
After loading the html, load PrettyPrint to process the code, refer to the example here: http://witcheryne.iteye.com/blog/1172068
Markdown
After the file parsing is completed, it will beHTMl
. It should be possible to directly addPrittyPrint
style highlighting code to HTML.Or you can use
Remark.js
directly in HTML to display themarkdown
file on the client, so there is no need to includejade
inmarkdown
.After loading the html, load PrettyPrint to process the code, refer to the example here: http://witcheryne.iteye.com/blog/1172068