rtomayko / ronn

the opposite of roff
http://rtomayko.github.com/ronn/
Other
1.36k stars 84 forks source link

Correctly escape single quote. #83

Open smira opened 10 years ago

smira commented 10 years ago

Replace ' with \(cq, as \' is different symbol. See smira/aptly#22 and rtomayko/ronn#21.

ghost commented 8 years ago

@rtomayko Would you please check this PR and merge?

alkisg commented 4 years ago

We're also affected by this; we're using Ronn to generate ltsp.org man pages from markdown, and when we have a line like sed 's/one/two/', Ronn converts it to sed ´s/one/two/´, and users complain about syntax errors in man pages.

alkisg commented 4 years ago

Hmm actually (cq isn't appropriate; this renders as RIGHT SINGLE QUOTATION MARK' (U+2019) which is still invalid code.

man ls on the other hand uses plain single quotes, NOT escaped, and they work fine.