Skip to content

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

Closed
borekb opened this Issue · 5 comments

2 participants

@borekb

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

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
Owner
@borekb

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
Owner
@jgm jgm added a commit that closed this issue
@jgm Textile reader: don't do smart punctuation unless explicitly asked.
Closes #2480.

Note that although smart punctuation is part of the textile
spec, it's not always wanted when converting from textile
to, say, Markdown.  So it seems better to make this an option.
532ae22
@jgm jgm closed this in 532ae22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.