needs must make MD ignore my PHP

Paul Ingraham, RMT paul at
Sat Jan 27 20:54:38 EST 2007

I need to exclude arbitrary chunks of my documents from Markdown
parsing, because my documents are littered with <?php blah blah ?>,
and a few other oddities. These blocks get gifted with unwanted
markup by Markdown:

<?php blah blah ?> becomes <p><?php blah blah ?></p>

If I can't make it stop that, it's a dealbreaker for me in an
otherwise fascinating and incredibly useful tool. And my gut tells
me that there has *got* to be a way, even though I've scoured the
syntax docs and can't find it. (I did notice a mechanism for doing
this via WordPress (<MTMarkdownOptions output='raw'>), but that's
WordPress. I'm handcrafting documents in BBEdit.)

What can I do to convince Markdown to ignore my php?

Thanks in advance!

Paul Ingraham, Registered Massage Therapist
(and Mac enthusiast: iMac G5 iSight 2.1Mhz 1.5GB RAM OS 10.4)
Got back pain?
Favourite Mac software: Spell Catcher, LaunchBar, BBEdit, Nisus
Writer Express, BibDesk

More information about the Markdown-Discuss mailing list