Skip to main content

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

toro-mkdocs-togglers-1.0.4.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file toro-mkdocs-togglers-1.0.4.tar.gz.

File metadata

  • Download URL: toro-mkdocs-togglers-1.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for toro-mkdocs-togglers-1.0.4.tar.gz
Algorithm Hash digest
SHA256 8abe75411696e1a376c698ffc9ee457ba03da484dd917c7418fa6cfe0fb65320
MD5 465d01d929b7470da5dfbd822ea564ab
BLAKE2b-256 b6b367c5881dcebea412eedae265bac30cc734047504c45ea46a74644ccbdbbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page