Dave, I just added another filter to clean up any image tags that were not coded according to the Markdown specs (i.e., with the image URL wrapped in quotes). For the record, any text in quotes within the URL part of the Markdown image tag is interpreted as the image’s ALT attribute. I’m not sure what PHPMarkdown does if it encounters an image tag with an alt but no src, but anyway, a little regular expression magick later and any tags that were coded that way are patched up.
Net result for anyone looking over this thread in the future is that the original post (showing the problem) doesn’t show that problem any more, because I patched around it.
Sorry, I got that just slightly wrong. Here’s the official image tag Markdown syntax:
![Alt Text](imageURL "Title Tag (optional)")
The imageURL attribute must be a complete http-and-everything URL to the image itself. The image URL is not quoted, in any case, and is separated from the optional Title attribute, which IS quoted if it is used.
I was concerned that in earlier posts viewers would be missing out on the ‘picture says a thousand words’ part and be flummoxed.
with the image URL wrapped in quotes…
What I dont understand is why it used to work if it was fundamentally wrong. Someone here told me that was the way to do it. I am not smart enough to have discovered it myself.