From da8425598a8ab4a98388e8ee346a2ae7ec540aa0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 1 Jan 2012 13:48:28 -0800 Subject: New treatment of dashes in --smart mode. * `---` is always em-dash, `--` is always en-dash. * pandoc no longer tries to guess when `-` should be en-dash. * A new option, `--old-dashes`, is provided for legacy documents. Rationale: The rules for en-dash are too complex and language-dependent for a guesser to work reliably. This change gives users greater control. The alternative of using unicode isn't very good, since unicode em- and en- dashes are barely distinguishable in a monospace font. --- README | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'README') diff --git a/README b/README index 9380c895e..5b4de3942 100644 --- a/README +++ b/README @@ -206,11 +206,17 @@ Options `-S`, `--smart` : Produce typographically correct output, converting straight quotes - to curly quotes, `---` and `--` to dashes, and `...` to ellipses. - Nonbreaking spaces are inserted after certain abbreviations, such - as "Mr." (Note: This option is significant only when the input format is - `markdown` or `textile`. It is selected automatically when the input - format is `textile` or the output format is `latex` or `context`.) + to curly quotes, `---` to em-dashes, `--` to en-dashes, and + `...` to ellipses. Nonbreaking spaces are inserted after certain + abbreviations, such as "Mr." (Note: This option is significant only when + the input format is `markdown` or `textile`. It is selected automatically + when the input format is `textile` or the output format is `latex` or + `context`.) + +`--old-dashes` +: Selects the pandoc <= 1.8.2.1 behavior for parsing smart dashes: `-` before + a numeral is an en-dash, and `--` is an em-dash. This option is selected + automatically for `textile` input. `-5`, `--html5` : Produce HTML5 instead of HTML4. This option has no effect for writers -- cgit v1.2.3