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

Closed
PuffinBlue opened this Issue Jun 26, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@PuffinBlue
Contributor

PuffinBlue commented Jun 26, 2015

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?

@PuffinBlue PuffinBlue changed the title from Add option to disable LaTeX style dash parsing - HTML_SMARTYPANTS_LATEX_DASHES to Add option to disable Blackfriday LaTeX style dash parsing - HTML_SMARTYPANTS_LATEX_DASHES Jun 26, 2015

@bep bep added the Enhancement label Jun 26, 2015

@bep

This comment has been minimized.

Show comment
Hide comment
@bep

bep Jun 28, 2015

Member

Also see #1220

Member

bep commented Jun 28, 2015

Also see #1220

@bep bep closed this in 05c07c5 Jun 28, 2015

bep added a commit that referenced this issue Jun 28, 2015

tychoish added a commit to tychoish/hugo that referenced this issue Aug 13, 2017

Add option to disable Blackfriday LaTeX style dashes
Can be used in site config of per page front matter:

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

Fixes #1231

tychoish added a commit to tychoish/hugo that referenced this issue Aug 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment