bhollis / maruku

A pure-Ruby Markdown-superset interpreter (Official Repo).
MIT License
502 stars 80 forks source link

UTF-8 BOM (byte-order-mark) before Title: #2

Closed vibrog closed 11 years ago

vibrog commented 15 years ago

I've found that Maruku does not make use of the "^Title: "-line if the input file has a UTF-8 BOM (byte-order-mark), which are always inserted by Notepad on Windows.

A workaround is to run sed 's/^\xEF\xBB\xBFTitle:/Title:/' before running Maruku.

Some info i read while investigating the issue. http://www.mail-archive.com/unicode@unicode.org/msg10834.html