Skip to main content
10 events
when toggle format what by license comment
Jun 20, 2021 at 11:35 history edited This_is_NOT_a_forum CC BY-SA 4.0
(While we are at it.) [<https://en.wiktionary.org/wiki/misdetect#Verb>]
Oct 28, 2020 at 2:54 comment added Josh Goebel There is a PR to fix this that will be merged soon and will be released when 10.4 is out. Markdown was also far too "greedy" and claiming anything that looked like [x][y] as a link. This has been resolved.
Oct 17, 2020 at 18:19 comment added Josh Goebel Filed as an upstream issue: github.com/highlightjs/highlight.js/issues/2767
Oct 17, 2020 at 18:15 comment added Josh Goebel That said this specific case is definitely an issue with our XML grammar being too greedy. It seems all those < as HTML and starts crediting everything it sees as an HTML attribute... which makes no sense because this is so not XML in so so many different ways. So this specific auto-detect failure is something we could fix upstream.
Oct 17, 2020 at 18:13 comment added Josh Goebel > "When two tags have a highlighter it falls back to lang-default" This definitely sounds like poor behavior on SE part. I'll jump into that thread next but both tags can easily be input to the auto-detecting algorithm, ie SE could easily tell us "I KNOW this either is C or C++ code". And with a small amount of extra effort you could "weight" the highlighter such that "I'm confident, but not entirely sure this is C or C++ code".
Oct 8, 2020 at 10:56 comment added Marijn There is also a feature request to supply all the tag-associated languages as hints to highlight.js instead of a fully 'blind' autodetection: meta.stackexchange.com/questions/354793/…
Oct 8, 2020 at 10:42 comment added rene I didn't know either. I needed Martijn to explain how it worked, See my revisions here: meta.stackoverflow.com/a/401174/578411
Oct 8, 2020 at 10:35 comment added Konrad Rudolph @rene Interesting, I didn’t know they would cancel out, that’s definitely not great.
Oct 8, 2020 at 10:09 comment added rene Both the C and C++ tag have a highlighter set (lang-c and lang-cpp). When two tags have a highlighter it falls back to lang-default. Add an explicit language hint to each code block.
Oct 8, 2020 at 9:48 history answered Konrad Rudolph CC BY-SA 4.0