Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get rid of "smart mode" #2480

Closed
borekb opened this issue Oct 25, 2015 · 5 comments
Closed

Can't get rid of "smart mode" #2480

borekb opened this issue Oct 25, 2015 · 5 comments

Comments

@borekb
Copy link

borekb commented Oct 25, 2015

I am converting Textile to Markdown and cannot get rid of the "smart" mode (at this point, I'd more likely call it a "stupid" mode :)

From the docs (emphasis mine):

(Note: This option is significant only when the input format is markdown, markdown_strict, textile or twiki. It is selected automatically when the input format is textile or the output format is latex or context, unless --no-tex-ligatures is used.)

This might be the issue - the "smart" mode is turned on automatically for Textile but there is no way to suppress it.

@borekb
Copy link
Author

borekb commented Oct 25, 2015

BTW, according to the docs (if you read them exactly), --no-tex-ligatures should suppress the smart mode even for Textile, but that quite obviously doesn't work.

@jgm
Copy link
Owner

jgm commented Oct 25, 2015

The reason smart mode is automatic for textile input is
simply that this treatment of quotes seems to be part of
standard textile: see e.g.
http://redcloth.org/hobix.com/textile/

If I'm wrong about this, please link to appropriate docs.

There's no point in making pandoc interpret textile
differently from standard textile processors, is there?

+++ Borek Bernard [Oct 25 15 07:30 ]:

I am converting Textile to Markdown and cannot get rid of the "smart"
mode (at this point, I'd more likely call it a "stupid" mode :)

From the [1]docs (emphasis mine):

(Note: This option is significant only when the input format is
markdown, markdown_strict, textile or twiki. It is selected
automatically when the input format is textile or the output format
is latex or context, unless --no-tex-ligatures is used.)

This might be the issue - the "smart" mode is turned on automatically
for Textile but there is no way to suppress it.


Reply to this email directly or [2]view it on GitHub.

References

  1. http://pandoc.org/README.html
  2. Can't get rid of "smart mode" #2480

@borekb
Copy link
Author

borekb commented Oct 25, 2015

That's probably because Textile was created to render to HTML where typography makes a lot of sense. (The docs explicitly state that the output is HTML.) When converting to another textile-like markup, I am not sure typography should be applied, at least I feel it shouldn't be forced.

@jgm
Copy link
Owner

jgm commented Oct 26, 2015

+++ Borek Bernard [Oct 25 15 16:57 ]:

That's probably because Textile was created to render to HTML where
typography makes a lot of sense. (The docs explicitly state that the
output is HTML.) When converting to another textile-like markup, I am
not sure typography should be applied, at least I feel it shouldn't be
forced.

That's a good point. You wouldn't normally want it
converting to Markdown, for example. Perhaps we should
discuss this on pandoc-discuss.

@borekb
Copy link
Author

borekb commented Oct 27, 2015

@jgm jgm closed this as completed in 532ae22 Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants