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

markdown-smart #10

Open
karelv opened this issue Jan 8, 2018 · 2 comments
Open

markdown-smart #10

karelv opened this issue Jan 8, 2018 · 2 comments

Comments

@karelv
Copy link

karelv commented Jan 8, 2018

I have an issue with markdown documents that uses the straight accents. (like in: It**'**s time)

It converts by default (pandoc 2.0.6) to a curly accent, and does not display well in my browser

In order to isolate the issue I made command line:

$ echo "'" | pandoc
<p>ÔÇÖ</p>

Then I found out that in fact one need to use iconv like this:

$ echo "'" | pandoc | iconv -f utf-8
<p>’</p>

I know you can hardly see the difference, but this accent is not the accent I want

So I want pandoc to produce:
<p>'</p>
I can do that by:

$ echo "'" | pandoc -r markdown-smart
<p>'</p>

So in order to do that I need to specify the smart extension for importing the markdown.

I do that in my conf.py file:

MarkdownParser.PANDOC_OPT[1] = MarkdownParser.PANDOC_OPT[1] + "-smart"

But it does not have any effect....

@karelv
Copy link
Author

karelv commented Jan 8, 2018

So I reviewed the source code and I saw that you actually specify twice the input format for markdown.
See here: https://pandoc.org/MANUAL.html#general-options the -r and the -f are exactly the same thing

the -f is defined here
and the -r is defined here.

@karelv
Copy link
Author

karelv commented Jan 8, 2018

My pull request is working on my win7 machine with pandoc 2.0.6.

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

1 participant