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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c73bd31317d39ae1845ce9defd06f9e930d35f63fba056501dc6ad92d812eb5 |
|
MD5 | dfd01d986501029dad33fa3c6aee1335 |
|
BLAKE2b-256 | 6b3b5f4321399f4f8abe675ccf40adf47cbf0c2eed259236c963c0a9623aad26 |
Close
Hashes for toro_mkdocs_togglers-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bafa1d729870d1bb35305a9903574556c7278adfc220cb7e58b87bff083b0c1 |
|
MD5 | c5cde124739883ae07278f3e6863d06d |
|
BLAKE2b-256 | bf14a377c796bfedd6b9eaac3325eff09adac12c148bd6e1a3c800c06dc1a5a8 |