Escaping hashes and exclamations correctly in body
Description/Summary
I intend to show these # characters verbatim; they should not render as Markdown headings. They also shouldn’t show up with a leading \ in the final rendered output. #This is not an Org comment. It has a hash char at beginning of a paragraph which must be escaped just once i.e. show up as \# in Markdown. blah # This isn’t an Org comment either This * will be escaped just once i.
Content
I intend to show these # characters verbatim; they should not render
as Markdown headings. They also shouldn’t show up with a leading \
in the final rendered output.
#This is not an Org comment. It has a hash char at beginning of a
paragraph which must be escaped just once i.e. show up as \# in
Markdown.
blah # This isn’t an Org comment either
This * will be escaped just once i.e. show up as \* in Markdown.
This _ will not be escaped as it’s a solo underscore character. But the following underscore will be escaped: something_.
This \ will be escaped just once i.e. show up as \\ in Markdown.
Hash char at beginning of a continued line
#like this must be escaped just once i.e. show up as \# in Markdown.
![this exclamation must be escaped just once i.e. show up as \! in
Markdown]
This ! does not need to be escaped as there is no ambiguity.
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Escaping hashes and exclamations correctly in body" | |
| Title | "Escaping hashes and exclamations correctly in body" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/escaping-hashes-and-exclamations-in-body/" | |
| RelPermalink | "/posts/escaping-hashes-and-exclamations-in-body/" | |
| Data |
| |
| NextPage | Escaping angle brackets | |
| PrevPage | Example block following a list | |
| NextInSection | Escaping angle brackets | |
| PrevInSection | Example block following a list |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2022-01-03 16:52:29 -0500 -0500 |
| tags | []string | "body" "escaping" |
| title | string | "Escaping hashes and exclamations correctly in body" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "b7f55fb566863e33cee0ca8ce03a1357" |
| BaseFileName | "escaping-hashes-and-exclamations-in-body" |
| TranslationBaseName | "escaping-hashes-and-exclamations-in-body" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "escaping-hashes-and-exclamations-in-body.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/escaping-hashes-and-exclamations-in-body.md" |