.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Jan 20, 2022 13:08 UTC.


This page was created/modified in commit 669d193 "Copy ox-hugo test site" on 2017-11-02.
Markdown source of this page

Verse for indentation

tags: verse


Description/Summary

Some text before indented text.  Text indented by 4 spacesOrg removes indentation from the first line of the text block even in a Verse block. To get around that, the trick is to use the > character before the required indentation spaces only on the first non-blank line in a Verse block. Only that first > character is removed when translating to Markdown. More examples More indentation than in the above example:


Content

Some text before indented text.

    Text indented by 4 spaces

Org removes indentation from the first line of the text block even in a Verse block. To get around that, the trick is to use the > character before the required indentation spaces only on the first non-blank line in a Verse block. Only that first > character is removed when translating to Markdown.

More examples

Corner cases

Only the first > character immediately following spaces and empty lines will be removed:

If someone really wants to have > as the first non-blank character in the final output, they can use >> instead.. only for that first instance. The below Verse block is same as above except that the first > is retained in the final output.


Page (Debug)

Page VariableValue
Name "Verse for indentation"
Title "Verse for indentation"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/verse-for-indentation/"
RelPermalink "/posts/verse-for-indentation/"
Data
page.Data{} (type:page.Data)
NextPageTable with single column
PrevPageNone
NextInSectionTable with single column
PrevInSectionNone

Page Params (Debug)

maps.Params{"draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "tags":[]string{"verse"}, "title":"Verse for indentation"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "a78d092ba4eb47498789d91d741f862e"
BaseFileName "verse-for-indentation"
TranslationBaseName "verse-for-indentation"
Lang "en"
Section "posts"
LogicalName "verse-for-indentation.md"
Dir "posts/"
Ext "md"
Path "posts/verse-for-indentation.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]