MediaWiki-MarkdownExtraParser icon indicating copy to clipboard operation
MediaWiki-MarkdownExtraParser copied to clipboard

Don't parse `source` and `syntaxhighlight`blocks

Open hacklschorsch opened this issue 10 years ago • 5 comments
trafficstars

I use the SyntaxHighlighter extension. MediaWiki-MarkdownExtraParser seems to parse Code in source and syntaxhighlight blocks.

How can I make it stop?

hacklschorsch avatar Feb 18 '15 10:02 hacklschorsch

Hmm, yea, we definitely shouldn't parse code in code blocks, but this library shouldn't care about a 3rd party's custom tags. The library might be able to allow a configuration for which elements to ignore... I'd be happy to take a pull request. :)

Rican7 avatar Feb 18 '15 19:02 Rican7

OK cool. I'd like to keep this issue open for now as a reminder to myself. I hope I'll find some time soon to send you a PR we can discuss. Maybe this is also interesting to @klml ?

hacklschorsch avatar Feb 19 '15 10:02 hacklschorsch

Yea, absolutely. We can leave this open and hopefully tend to it in the nearish future. :+1:

Rican7 avatar Feb 19 '15 15:02 Rican7

Any Updates yet? I just encountered the same issue... I also added it on the Discuss-Page: https://www.mediawiki.org/wiki/Extension_talk:MarkdownExtraParser

Okay, there seems to be a problem with the docodeblocks function...

nitricware avatar Sep 28 '16 18:09 nitricware

Nothing from me unfortunately. I cannot summon the time to delve into PHP, sorry :(

hacklschorsch avatar Oct 07 '16 14:10 hacklschorsch