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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf95b490d15c112bde4e51aba9c295d03f63c1b110f81ea0fef80826b613311d |
|
MD5 | 099277bbb5a96e9741d09b8849a1186b |
|
BLAKE2b-256 | 7810da204a0d0d5bb718230a945d9c13545ed8ffa79692a0bccbf39b48d6b32e |
Close
Hashes for toro_mkdocs_togglers-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0646ceb85544d9b08972970c6ee7968fe8d303c1b67bfa349ed4e1db534b6dc1 |
|
MD5 | b4fe46f45898137ae086029163a1b544 |
|
BLAKE2b-256 | d876a360f4155b079402f311c451a3130bfbed735e86f5c400e6b1cc61a57040 |