Skip to content

Commit

Permalink
Merge pull request apidoc#759 from lagasi/master
Browse files Browse the repository at this point in the history
Add syntax highlighting to header and footer
  • Loading branch information
manishsaraan authored Nov 25, 2018
2 parents 235a52a + 9a67c65 commit ed44d3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ function createDoc(options) {
breaks : false,
html : true,
linkify : false,
typographer: false
typographer: false,
highlight: function (str, lang) {
if (lang) {
return '<pre class="prettyprint lang-' + lang + '">' + str + '</pre>';
}
return '<pre class="prettyprint">' + str + '</code></pre>';
}
});
} else if(app.options.markdown !== false) {
// Include custom Parser @see MARKDOWN.md and test/fixtures/custom_markdown_parser.js
Expand Down

0 comments on commit ed44d3d

Please sign in to comment.