You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
PrismJS does not autodetect code language PrismJS/prism#1313
can you add an option to select between PrismJS and https://highlightjs.org/ because highlightjs can auto detect the language. if you do not like this idea can you please at least add the trick described here to add autodetect to PrismJS? it is only 3 lines of code:
Thanks for the feedback. I did not think about that use case. I thought that using fenced code blocks with language labels was something that most people do.
I thought that using fenced code blocks with language labels was something that most people do.
Yes this is true when i create the markdown my self, but in general and most cases i just copy already made snippets found in internet which in a lot of cases does not include the language tag, see this example:
say for example i found an interesting code in some site that i want to save as markdown, so i use Copy as Markdown , it is able to add the language if the site use language-* class, but a lot of sites does not add it or use a different class , see for example this mozilla snippet they use brush: js , so Copy as Markdown will create a fenced code without the language. this happens in a lot of sites so you end up with a lot of code snippets without language tag.
Hi,
PrismJS does not autodetect code language PrismJS/prism#1313
can you add an option to select between PrismJS and https://highlightjs.org/ because highlightjs can auto detect the language. if you do not like this idea can you please at least add the trick described here to add autodetect to PrismJS? it is only 3 lines of code:
i open a lot of markdown files with code snippets without a defined language so autodetection will help a lot with that.
The text was updated successfully, but these errors were encountered: