.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Oct 05, 2024 21:20 UTC.


This page was created/modified in commit eee5dd4 "Fix underscore escaping" on 2022-01-03.
Markdown source of this page

Escaping hashes and exclamations correctly in body

tags: body escaping


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 VariableValue
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
page.Data{} (type:page.Data)
NextPageEscaping angle brackets
PrevPageExample block following a list
NextInSectionEscaping angle brackets
PrevInSectionExample block following a list

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-03 16:52:29 -0500 -0500
tags[]string "body" "escaping"
titlestring "Escaping hashes and exclamations correctly in body"

File Object (Debug)

FileInfo VariableValue
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"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]