Questions tagged [highlightjs]

A JavaScript-based syntax highlighting library

highlight.js is a Javascript-based syntax highlighting library with support for more than 150 languages.

If you think you have found a bug in this library, make use of the project's GitHub page to file a bug report. There is also a discussion group available.

39 questions
20
votes
3 answers

How to reinitialize highlight.js?

My website is generating some content dynamically, so I have to somehow launch the highlight.js plugin again after loading it. This code is used to launch the highlighter: hljs.initHighlightingOnLoad(); I tried to do something like…
boreq
  • 791
  • 2
  • 10
  • 18
9
votes
1 answer

How to use npm Marked with HighlightJS

How do you use npm Marked with HighlightJS? I'm trying to automate my docs to be parsed and styled. Looking at the following example from marked docs: // Using async version of marked marked(markdownString, function (err, content) { if (err) throw…
jtlindsey
  • 4,346
  • 4
  • 45
  • 73
7
votes
1 answer

How to tell tumblr to stop making changes to the markdown and/or HTML code?

tl;dr: tumblr makes changes to the markdown and HTML code. If you write < into the markdown code and reload it, it will be replaced by < and break things. If you use however the HTML editor and place something like an &, which you might need with…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
6
votes
2 answers

How to disable Vuetify's style?

I want to parse markdown to html and use syntax highlighting. My SFC is as follows: