pandoc/src/Text/Pandoc/Readers
John MacFarlane ed1173ace6 Rationalized behavior of --no-tex-ligatures and --smart.
This change makes `--no-tex-ligatures` affect the LaTeX reader
as well as the LaTeX and ConTeXt writers.  If it is used,
the LaTeX reader will parse characters `` ` ``, `'`, and `-`
literally, rather than parsing ligatures for quotation marks
and dashes.  And the LaTeX writer will print unicode quotation
mark and dash characters literally, rather than converting
them to the standard ASCII ligatures.

Note that `--smart` has no affect on the LaTeX reader.

`--smart` is still the default for all input formats when
LaTeX or ConTeXt is the output format, *unless* `--no-tex-ligatures`
is used.

Some examples to illustrate the logic:

```
% echo "'hi'" | pandoc -t latex
`hi'
% echo "'hi'" | pandoc -t latex --no-tex-ligatures
'hi'
% echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
‘hi’
% echo "'hi'" | pandoc -f latex --no-tex-ligatures
<p>'hi'</p>
% echo "'hi'" | pandoc -f latex
<p>’hi’</p>
```

Closes #2541.
2015-11-19 20:30:41 -08:00
..
Docx Docx reader: Clean up commented-out function 2015-11-18 14:06:13 -05:00
Odt Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
CommonMark.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
DocBook.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
Docx.hs Docx reader: Handle dummy list items. 2015-11-18 13:02:57 -05:00
EPUB.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
Haddock.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
HTML.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
LaTeX.hs Rationalized behavior of --no-tex-ligatures and --smart. 2015-11-19 20:30:41 -08:00
Markdown.hs Added emoji extension to Markdown. 2015-11-13 12:14:24 -08:00
MediaWiki.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
Native.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
Odt.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
OPML.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
Org.hs Merge pull request #2526 from tarleb/org-definition-lists-fix 2015-11-13 14:07:56 -08:00
RST.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00
TeXMath.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
Textile.hs Textile reader: skip over attribute in image source. 2015-11-16 20:43:07 -08:00
TWiki.hs Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly." 2015-11-09 10:08:22 -08:00
Txt2Tags.hs Restored Text.Pandoc.Compat.Monoid. 2015-11-09 11:19:25 -08:00