Preformatted text formatting collision between HTML and Markdown


(Sam Saffron) #1

Preformatted text is bust under this condition (markdown issue):

echo '<pre>', print_r($polls) ,'</pre>

Works correctly in dingus .

cc @eviltrout


(Jens Maier) #2

It’s a problem with ordering: the Discourse code dialect fires before the markdown code dialect. This reorders the block dialects so that the Gruber code handler is always called first. Long-term, handler ordering should probably be more customizeable, but for now this works and also solves Gruber-style code blocks that contain matching [quote] pairs.

https://github.com/discourse/discourse/pull/2778


(Sam Saffron) #3

Thanks heaps :hamster:


(Sam Saffron) #4