mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
ee9d19d299
TiddlyWiki passes the MIME type of the tiddler to highlight.js as the "language brush", but it turns out that highlight.js doesn't actually understand MIME types. This commit introduces a configuration mapping between common MIME types and highlight.js language brushes Fixes #2535
10 lines
193 B
Plaintext
10 lines
193 B
Plaintext
title: $:/config/HighlightPlugin/TypeMappings/
|
|
|
|
text/plain:
|
|
application/javascript: javascript
|
|
application/json: json
|
|
text/css: css
|
|
text/html: html
|
|
image/svg+xml: xml
|
|
text/x-markdown: markdown
|