rgovostes
Member
Posted 4 months ago #
See http://rgov.org/?p=76, third code block. The <p></p> tags are being inserted automatically.
My code is:
[code]
0x5906 movl 0x00007274,%eax
0x590b calll 0x00004f52 Anon42
0x5910 testb %al,%al
0x5912 je 0x00005930
0x5914 movl $0x00006ed5,0x04(%esp) 802.1X is active – exiting
0x591c jmpl 0x00005378
[/code]
I am using the Markdown Extra plugin (http://michelf.com/projects/php-markdown/extra/) along with SyntaxHighlighter Evolved. If I disable it, the problem goes away. I'm not sure who to blame for the problem, however. Perhaps I can make syntax highlighter higher priority so that it modifies the post first?
SyntaxHighlighter runs at 9. You can lower it or raise Markdown Extra -- that'll probably fix it.
add_filter( 'the_content', array(&$this, 'parse_shortcodes'), 9 );
This only sort of fixes things - it results in the HTML markup not being added, but still escapes the quotes.
This means that the page renders properly but that the original markdownsource is full of "$1" issues
Move my plugin to 8 (infact I think in the latest version it's lower than that) and then Markdown to 9. Just as long as they're both below 10 (where quotes, paragraphs, etc. happen), it'll be fine.