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

smartDashes not converted inside post title #4175

Closed
bradleyjkemp opened this issue Dec 19, 2017 · 2 comments
Closed

smartDashes not converted inside post title #4175

bradleyjkemp opened this issue Dec 19, 2017 · 2 comments
Labels

Comments

@bradleyjkemp
Copy link

I've enabled smartDashes = true in my config.toml and this correctly converts "--" into an en-dash in the post body, but doesn't do the same conversion for "--" in the post title.

@moorereason
Copy link
Contributor

The page title is not treated as markdown. You have to use the markdownify template function for that. If markdownify isn't working properly, let us know.

kaushalmodi added a commit to kaushalmodi/ox-hugo that referenced this issue Dec 19, 2017
This gets around the limitation where the Blackfriday smartDashes
feature does not work on post titles as Hugo does not render the
titles as Markdown by default.

gohugoio/hugo#4175
@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 Mar 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants