A Python markdown extension for wrapping texts and images in a special tag for toggling
Project description
TORO Toggler Markdown Extension
Content Toggler Markdown extension for TORO Documentation.
Installation
pip install toro-mkdocs-togglers
Usage
To properly use the toggler extension use the following markdown:
||| "TabName1"
Tab1 content.
||| "TabName2"
Tab2 content.
The produced HTML from the markdown will be:
<div class="toro-toggler" data-names="TabName1,TabName2">
<div data-related-divider="TabName1">
<p>Tab1 content.</p>
</div>
<div data-related-divider="TabName2">
<p>Tab2 content.</p>
</div>
</div>
To use the toggler extension with a nested toggler use the following markdown:
||| "TabName1"
/// "NestedTabName1"
Nested Tab1 content.
/// "NestedTabName2"
Nested Tab2 content.
||| "TabName2"
Tab2 content.
The produced HTML from the markdown will be:
<div class="toro-toggler" data-names="TabName1,TabName2">
<div data-related-divider="TabName1">
<div class="toro-toggler" data-names="NestedTabName1,NestedTabName2">
<div data-related-divider="NestedTabName1">
<p>Nested Tab1 content.</p>
</div>
<div data-related-divider="NestedTabName2">
<p>Nested Tab2 content.</p>
</div>
</div>
</div>
<div data-related-divider="TabName2">
<p>Tab2 content.</p>
</div>
</div>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for toro-mkdocs-togglers-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4875823d614f58be28277203e14e136e94438740ed03536d18a244ff0484380a |
|
MD5 | 1a1ddc6142652af2947afcc626ceb0e4 |
|
BLAKE2b-256 | bce8bd543b3f03c607c5157468096ef6068cc9db0384f5efe864c4aa4b7ff583 |
Close
Hashes for toro_mkdocs_togglers-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ea97b3a4393d3c0d1d0d0997643d6fe9d567a23a1527a6d0e33a6b7ec23848 |
|
MD5 | b713b2f493f2e681256d54990193ab9a |
|
BLAKE2b-256 | c0136125cc17f155cc857177630eb5c62f8043f3070b6627830fdd93fe940bf6 |