1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-14 18:10:02 +00:00
Talha Mansoor 04a4a0f92e Add support of language aliases in highlight.js plugin (#3898)
listLanguages() returns a list of supported languages. It does not
return language aliases.

highlight.js has extensive support of language aliases which can be 
viewed here

https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#language-names-and-aliases

But because of using listLanguages(), TW does not take advantage of 
alias.

getLanguage() method on the other hand supports aliases.

https://highlightjs.readthedocs.io/en/latest/api.html#getlanguage-name

To summarize, now user can use javascript, js or jsx for the code block. getLanguage() will return an object which means highlight.js supports
this language.
2019-04-15 18:45:45 +01:00
..
2018-03-19 15:56:28 +00:00
2017-11-18 19:53:52 +00:00
2019-01-04 20:07:37 +00:00
2018-01-11 21:31:58 +00:00
2018-12-14 21:51:23 +00:00
2018-06-23 10:18:39 +01:00
2017-12-14 14:16:54 +00:00
2017-12-12 13:58:26 +00:00