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.
ox-hugo
Issue #377
pre
block.
E = -J \sum\_{i=1}^N s\_i s\_{i+1}
Page (Debug)
Page Variable | Value | |
---|---|---|
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 |
| |
NextPage | Paired Shortcodes using special blocks (No Arguments) | |
PrevPage | Paragraphs in lists | |
NextInSection | Paired Shortcodes using special blocks (No Arguments) | |
PrevInSection | Paragraphs in lists |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | "Tests for paired shortcodes with positional arguments." |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-01-09 21:40:09 -0500 -0500 |
tags | []string | "shortcode" "paired" "special-block" "positional" "arguments" |
title | string | "Paired shortcodes using special blocks (Positional Arguments)" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
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" |