UTF-8 BOM

Bruce Phillips bruce at macscripter.net
Sat Oct 27 13:11:27 EDT 2007



> Date: Sat, 27 Oct 2007 08:55:20 -0400

> From: Michel Fortin <michel.fortin at michelf.com>

>

> Ok, I'll admit PHP Markdown does something wrong with the UTF-8 BOM,

> but in my tests the first line *is* parsed: the BOM is seen as

> regular text and appear in the first paragraph. That's not, of

> course, what the output should be, but it doesn't really match what

> you describe either, which is puzzling. Perhaps you're expecting a

> header, or a list item, and you're equating a paragraph as "not

> parsed".


My apologies. I should have indicated that I was expecting a header
but received a paragraph.


> Then again, the Markdown function is often used to parse files --

> such as in `$text = Markdown(file_get_contents("file.txt"));`


That's how I was using it last night.

Bruce Phillips



More information about the Markdown-Discuss mailing list