.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 (Positional Arguments)

tags: shortcode paired special-block positional arguments


Description/Summary

Tests for paired shortcodes with positional arguments.

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.


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.

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.

The Markdown _emphasis_ characters are !! NOT !! rendered.

ox-hugo Issue #377

Dummy KaTeX shortcode for a test; just prints the contents in a pre block.
        
E = -J \sum\_{i=1}^N s\_i s\_{i+1}

    

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