zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 52 forks source link

Default to `text` for code highlighting #421

Closed StaloneLab closed 3 years ago

StaloneLab commented 3 years ago

The title is pretty self-explanatory: currently, when highlighting a code block without specifying a language, lowlight tries to guess a best match using regexes, but this procedure was recently found slow and sometimes unstable, so I suggest to remove it.

artragis commented 3 years ago

For me this is good.

StaloneLab commented 3 years ago

Just noticed it is what we already do for LaTeX, so there shouldn't be too much problem applying this fix ;).

StaloneLab commented 3 years ago

Closed because was integrated into #422