.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 0150797 "Support exporting shortcodes with positional arguments # take 2" on 2018-02-02.
Markdown source of this page

Paired shortcodes using special blocks (Positional Arguments)

tags: shortcode paired special-block positional arguments


Description/Summary

Test case for feature requested in ox-hugo Issue #119. Paired markdown shortcode The alert shortcode takes 1 positional argument. .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } div.alert { border-radius: 10px; margin-bottom: 1rem; } div.alert p { position: relative; display: block; font-size: 1rem; margin-left: 2rem; margin-top: 0; margin-bottom: 0; } div.alert a { color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: solid 1px #e4e4e4; transition: color 0.2s ease-in-out, border-color 0.


Content

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

Paired markdown shortcode

The alert shortcode takes 1 positional argument.

Content with emphasis characters is rendered.

The HTML markup will also get rendered.


Below is the about same as above, except that warning attribute (argument to the exported shortcode) is used instead of note.

Content with emphasis characters is rendered.

The HTML markup will also get rendered.

Paired non-markdown (default) shortcode

The myshortcode-pos takes 2 positional arguments. In the below example, the double-quoted "foo bar" will be the first argument, and "zoo" will be the second.

Content is rendered like HTML. The Markdown _emphasis_ characters are !! NOT !! rendered.

Page (Debug)

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

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-02-02 07:53:49 -0500 -0500
tags[]string "shortcode" "paired" "special-block" "positional" "arguments"
titlestring "Paired shortcodes using special blocks (Positional Arguments)"

File Object (Debug)

FileInfo VariableValue
UniqueID "63c340261618a22a75564a2123d2b160"
BaseFileName "paired-shortcodes-special-blocks-positional-arguments"
TranslationBaseName "paired-shortcodes-special-blocks-positional-arguments"
Lang "en"
Section "posts"
LogicalName "paired-shortcodes-special-blocks-positional-arguments.md"
Dir "posts/"
Ext "md"
Path "posts/paired-shortcodes-special-blocks-positional-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]