domchristie/to-markdown — pull request #28 by Jsonzhang (2013-07-01 08:18:52+00:00)
Title: fix bug with tag <pre>

with greedy the regular expression will match characters which should not be matched,so the tag "

" must use Lazy quantifiers.

demo:

npm install template-compiler -g

调用

atc [options]

this piece of html code can explain the bug.