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. 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.
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://ox-hugo.scripter.co/test/posts/ndash-and-mdash/" | |
RelPermalink | "/posts/ndash-and-mdash/" | |
Data |
| |
NextPage | Custom front matter in one line | |
PrevPage | Nested bold and italics | |
NextInSection | Custom front matter in one line | |
PrevInSection | Nested bold and italics |
Page Params (Debug)
Key | Type | Value |
---|---|---|
date | time.Time | 2017-07-22 00:00:00 +0000 UTC |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2017-12-20 11:23:56 -0500 -0500 |
publishdate | time.Time | 2017-07-22 00:00:00 +0000 UTC |
tags | []string | "body" |
title | string | "ndash `and` mdash" |
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" |