.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 Apr 03, 2020 02:29 UTC.


This page was created/modified in commit 3b6a046 "Don't double-escape # and ! chars" on 2017-12-19.
Markdown source of this page

Escaping hashes and exclamations correctly in body

tags: 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 be escaped just once i.e. show up as \_ in Markdown.

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)
NextPageEquations with (r), (c), ..
PrevPageExample block following a list
NextInSectionEquations with (r), (c), ..
PrevInSectionExample block following a list

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2017-12-19 18:45:29 -0500 -0500
tags[]string "body"
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.59.0-DEV (commit 5276f1e9, using Chroma commit 26f03cb) .
[Test Site home | ox-hugo home]