Docs

Sub

Posted on December 30, 2023  (Last modified on June 7, 2025) • 1 min read • 68 words
Share via

Use the sub shortcode to display text in subscript.

Overview  

As an example, the following shortcode displays subscript text.

H2O is a liquid.
markdown
H{{< sub 2 >}}O is a liquid.

Arguments  

The shortcode supports the following arguments:

Name Type Required Default Comment
text string, template.HTML, hstring.RenderedString, hstring.HTML yes Text to render by the element.
Name Type Required Default
text string, template.HTML, hstring.RenderedString, hstring.HTML yes
Text to render by the element.