.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 Sep 17, 2020 15:47 UTC.


This page was created/modified in commit 2a762a4 "HTML validation and consistency edits: Ending HTML tags in spcl blks" on 2018-03-19.
Markdown source of this page

Paired Shortcodes using special blocks (No Arguments)

tags: shortcode paired special-block no-arguments


Description/Summary

Test case for feature requested in ox-hugo Issue #119. Paired markdown shortcode Content with emphasis characters is rendered. The HTML markup will also get rendered. This will export as: {{% mdshortcode %}} Content rendered as Markdown {{% /mdshortcode %}} Paired non-markdown (default) shortcode Content is rendered like HTML. The Markdown _emphasis_ characters are !! NOT !! rendered. So a blank line before this sentence in the Markdown source will not result in a new paragraph in HTML.


Content

Test case for feature requested in ox-hugo Issue #119.

Paired markdown shortcode

Content with emphasis characters is rendered.

The HTML markup will also get rendered.

This will export as:

{{% mdshortcode %}} Content rendered as Markdown {{% /mdshortcode %}}

Paired non-markdown (default) shortcode

Content is rendered like HTML. The Markdown _emphasis_ characters are !! NOT !! rendered. So a blank line before this sentence in the Markdown source will not result in a new paragraph in HTML.

But this will be a new paragraph as it is wrapped in HTML <p> tags.

This will export as:

{{< myshortcode >}} Content NOT rendered as Markdown {{< /myshortcode >}}

Not a recognized paired shortcode

Content with Markdown emphasis characters is rendered fine in the default Special Blocks.

This will export as Special Blocks — either wrapped with <div> tags or HTML5-recognized tags.


Page (Debug)

Page VariableValue
Name "Paired Shortcodes using special blocks (No Arguments)"
Title "Paired Shortcodes using special blocks (No Arguments)"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/paired-shortcodes-special-blocks-no-arguments/"
RelPermalink "/posts/paired-shortcodes-special-blocks-no-arguments/"
Data
page.Data{} (type:page.Data)
NextPagePaired shortcodes using special blocks (Named Arguments)
PrevPagePaired shortcodes using special blocks (Positional Arguments)
NextInSectionPaired shortcodes using special blocks (Named Arguments)
PrevInSectionPaired shortcodes using special blocks (Positional Arguments)

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-03-19 16:06:28 -0400 -0400
tags[]string "shortcode" "paired" "special-block" "no-arguments"
titlestring "Paired Shortcodes using special blocks (No Arguments)"

File Object (Debug)

FileInfo VariableValue
UniqueID "ade7fd28f68a00c87beadf7c0df18c4c"
BaseFileName "paired-shortcodes-special-blocks-no-arguments"
TranslationBaseName "paired-shortcodes-special-blocks-no-arguments"
Lang "en"
Section "posts"
LogicalName "paired-shortcodes-special-blocks-no-arguments.md"
Dir "posts/"
Ext "md"
Path "posts/paired-shortcodes-special-blocks-no-arguments.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.68.3 (commit 157669a0) .
[Test Site home | ox-hugo home]