.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 Mar 05, 2024 19:24 UTC.


This page was created/modified in commit e5edf5a "Org special blocks: Add `org-hugo-special-block-raw-content-types`" on 2022-01-09.
Markdown source of this page

Paired Shortcodes using special blocks (No Arguments)

tags: shortcode paired special-block no-arguments


Description/Summary

Tests for paired shortcodes with no arguments.

Content

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

Paired markdown shortcode #

#+begin_mdshortcode
Content *with* /emphasis/ characters is rendered.
#+end_mdshortcode

Above will export as:

{{% mdshortcode %}}
Content *with* /emphasis/ characters is rendered.
{{% /mdshortcode %}}

and render as:

Content with emphasis characters is rendered.

Paired non-markdown (default) shortcode #

Markdown is !! NOT !! rendered in non-markdown shortcodes.

#+begin_myshortcode
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.
#+end_myshortcode

Above will export as:

{{< myshortcode >}}
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.
{{< /myshortcode >}}

and render as:

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.

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
descriptionstring "Tests for paired shortcodes with no arguments."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-01-09 21:40:09 -0500 -0500
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.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]