markdown-editor
markdown-editor copied to clipboard
Syntax highlighting for code blocks does not work
This does not result in any highlighting:
```yaml
neutron-api:
charm: cs:xenial/neutron-api
num_units: 1
bindings:
public: public-space
```
The last line is just backticks. I just don't know how to render them in this comment box.
The last line is just backticks. I just don't know how to render them in this comment box.
You can indent the entire fenced block (including the backtick lines) with 4 spaces. That way you won't need any escaping for the backticks.
Example:
```
foobar
```
Hey, this is a simple bug due to us using a really old version of highlight.js. These are the only supported languages:
coffeescript
apache
http
cs
java
sql
nginx
xml
diff
javascript
bash
objectivec
markdown
json
python
ruby
cpp
css
php
perl
ini
makefile
We should start using newer hljs.