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

Add option to disable Blackfriday LaTeX style dash parsing - HTML_SMARTYPANTS_LATEX_DASHES #1231

Closed
josharcheruk opened this issue Jun 26, 2015 · 2 comments

Comments

@josharcheruk
Copy link
Contributor

Issue added as requested: http://discuss.gohugo.io/t/option-to-disable-latex-style-dash-parsing/1371.

Brief recap:

Hugo offers a number of options for adjusting Blackfriday.

One that seems to be missing is disabling LaTeX style dash parsing. Taken from the Blackfriday docs:

LaTeX-style dash parsing is an additional option, where -- is translated into , and --- is translated into . This differs from most smartypants processors, which turn a single hyphen into an ndash and a double hyphen into an mdash.

Could be implemented at the same time as #1220?

@josharcheruk josharcheruk changed the title Add option to disable LaTeX style dash parsing - HTML_SMARTYPANTS_LATEX_DASHES Add option to disable Blackfriday LaTeX style dash parsing - HTML_SMARTYPANTS_LATEX_DASHES Jun 26, 2015
@bep
Copy link
Member

bep commented Jun 28, 2015

Also see #1220

@bep bep closed this as completed in 05c07c5 Jun 28, 2015
bep added a commit that referenced this issue Jun 28, 2015
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
Can be used in site config of per page front matter:

```
[blackfriday]
latexDashes = false
```

Fixes gohugoio#1231
tychoish pushed a commit to tychoish/hugo that referenced this issue Aug 13, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants