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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53aeb1dd083018890ed4dbf0f5bd965e7095c9261a373a5b54c86090395e4c41 |
|
MD5 | e0512241d7dfbd0c0f1efe3da9adcb23 |
|
BLAKE2b-256 | 9972159e93c1273489b89feb004637a1a65c84e61b6a6a8c52946a9d60e33f68 |
Close
Hashes for toro_mkdocs_togglers-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c8e1488c48e3b5b6a413166765d55178444bb476707d9d293f47bba39ff4f5 |
|
MD5 | 71bbb4ec59b6ec9fe6df1b209f121736 |
|
BLAKE2b-256 | 211670b0fed6c204d4ed6143f5d51a0055c7cd71325f8fe215d837d45e01fbbd |