Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.49 KB

boxed-text.rst

File metadata and controls

51 lines (31 loc) · 1.49 KB

Boxed Text

Processor name: boxed-text

You can enclose text inside of a box using the following text tag:

../../../verto/tests/assets/boxed-text/doc_example_basic_usage.md

Optional Tag Parameters

  • indented - If yes, the box will have indentation on the left to match indentation of the first level of a list.

The default HTML for button links is:

../../../verto/html-templates/boxed-text.html

Using the example tag above, the resulting HTML would be:

../../../verto/tests/assets/boxed-text/doc_example_basic_usage_expected.html

Overriding HTML for Boxed Text

When overriding the HTML for boxed text, the following Jinja2 placeholders are available:

  • {{ text }} - The text enclosed by the boxed text tags.
  • indented - Set to yes if the indentation parameter was set to True.

Example

For example, providing the following HTML:

../../../verto/tests/assets/boxed-text/doc_example_override_html_template.html

with the following tag:

../../../verto/tests/assets/boxed-text/doc_example_override_html.md

would result in:

../../../verto/tests/assets/boxed-text/doc_example_override_html_expected.html