Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render em dash, en dash and horizontal ellipsis in titles too
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
- Loading branch information
1 parent
1d0fae1
commit 0f38756
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
test/site/content/posts/en-dash-em-dash-hellip-in-titles.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+++ | ||
title = "En dash – Em dash — Horizontal ellipsis … in titles" | ||
tags = ["title"] | ||
categories = ["upstream"] | ||
draft = false | ||
+++ | ||
|
||
This tests an `ox-hugo` feature that gets around an upstream | ||
limitation, where the Blackfriday _smartDashes_ rendering does not | ||
happen in post titles (`hugo` Issue #[4175](https://github.com/gohugoio/hugo/issues/4175)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters