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

en dash, em dash, ellipsis #53

Open
dpo opened this issue Jan 1, 2012 · 2 comments
Open

en dash, em dash, ellipsis #53

dpo opened this issue Jan 1, 2012 · 2 comments

Comments

@dpo
Copy link

dpo commented Jan 1, 2012

I'm wondering how difficult it would be to have those converted to the proper typographical symbols. I know it's possible with pandoc -S and would look much better in PDF and HTML output. Is it possible with the current version of Qute? Is it an option to Showdown? Sorry if this is obvious and I missed it!

@fbreuer
Copy link
Owner

fbreuer commented Jan 2, 2012

  1. Adding this to Showdown.js should not be too difficult, however I am somewhat reluctant to touch the Showdown.js code as it is a mess of regular expressions.

  2. Running pandoc with the option -S is possible, but (right now) only if you edit the code. In your Qute directory edit the file browser_code/inkline.js, look for the function exportLaTeX (or export PDF, if you prefer). In that function edit the line

cCProcess.spawn(exe, ["-f", "markdown", "-t", "latex", "-o", x, filename]);

to add any comand line options to pandoc that you would like to have.

A GUI option to change this would of course be desireable, but is not a priority at the moment.

@dpo
Copy link
Author

dpo commented Jan 2, 2012

Thank you. For the moment, it seems easier to create an alias that calls markdown2pdf with the options you want.

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