Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable special string insertion by Org; Title sanitization
- Blackfriday automatically renders "--" as en-dash, "---" as em-dash and so on. So there is no need for Org to replace those with the HTML special characters in the Markdown itself. This also makes the Markdown more readable. - Titles are now sanitized. HTML anyways does not allow bold, italics, etc markup in the <title> section. Now Markdown markup for the same are removed from the title variable in front matter.
- Loading branch information
1 parent
fe39046
commit 669056d
Showing
5 changed files
with
52 additions
and
2 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
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,25 @@ | ||
+++ | ||
title = "ndash and mdash" | ||
date = 2017-07-22 | ||
tags = ["body"] | ||
draft = false | ||
+++ | ||
|
||
The strings in these two columns should look the exact same. | ||
|
||
| Character | Rendered Actual | Rendered Expection | ||
---|-----------|-----------------|------------------- | ||
1 | Hyphen | a - b | a - b | ||
2 | Ndash | a -- b | a – b | ||
3 | Mdash | a --- b | a — b | ||
4 | Ellipsis | a ... b | a … b | ||
|
||
|
||
## Title sanitization {#title-sanitization} | ||
|
||
This post has italics, monospace and bold in the title. This is to | ||
test that those markup characters **do not** end up in the `title` front | ||
matter of the post because HTML does not allow markup in the `<title>` | ||
section. | ||
|
||
So the title of this post should read as "ndash and mdash". |
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