ndash and mdash
tags: body
Description/Summary
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 This post has italics, monospace and bold in the title.
Content
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
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”.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "ndash and mdash" | |
Title | "ndash and mdash" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/ndash-and-mdash/" | |
RelPermalink | "/posts/ndash-and-mdash/" | |
Data |
| |
NextPage | Description meta-data with "quoted text" | |
PrevPage | Nested bold and italics | |
NextInSection | Description meta-data with "quoted text" | |
PrevInSection | Nested bold and italics |
Page Params (Debug)
maps.Params{"date":time.Date(2017, time.July, 22, 0, 0, 0, 0, time.UTC), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "publishdate":time.Date(2017, time.July, 22, 0, 0, 0, 0, time.UTC), "tags":[]string{"body"}, "title":"ndash and mdash"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "6d77d4071c64a383cccc2423e5b4db7b" |
BaseFileName | "ndash-and-mdash" |
TranslationBaseName | "ndash-and-mdash" |
Lang | "en" |
Section | "posts" |
LogicalName | "ndash-and-mdash.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/ndash-and-mdash.md" |