[kramdown-users] kramdown + smarty pants punctuation

john muhl johnmuhl at gmail.com
Thu Feb 4 21:44:24 EST 2010


does kramdown have an option to turn on smarty pants style punctuation?

currently i'm wrapping kramdown with rubypants but there is an issue
with " when i do this; i.e. by the time the kramdown output is handed
off to rubypants all the "s are already ". to get around that i'm
overriding the ESCAPE_MAP to not include " but i really don't like
that; and it causes problems with markdown like `Foo [bar](/url/
"Title with "quotes" inside")` (the inner quotes are never converted
to entities).

any suggestions for a better way to handle this or an option i've overlooked?


More information about the kramdown-users mailing list