Skip to main content

A markdown extension for defining collapsible areas

Project description

Allow the definition of collapsible blocks in Markdown.

Generated code is designed for compatibility with Bootstrap.

Based on the official Admonition extension.

Usage

Blocks starting with <<< will start collapsed, blocks starting with >>> will start uncollapsed.

Syntax:

<<< [<Panel Id>] "<Panel Title>"
    Paragraph1

    Paragraph2

or

>>> [<Panel Id>] "<Panel Title>"
    Paragraph1

    Paragraph2

Example

<<< "Collapsible stuff"
    * Stuff 1
    * Stuff 2
    * Stuff 3
    * Stuff 4

becomes

<div class="panel panel-default panel-collapsible">
    <div class="panel-heading">
        <a data-toggle="collapse" data-target="#collapse1" />
    </div>
    <div id="collapse1" class="panel-body collapse in">
        <ul>
            <li>Stuff 1</li>
            <li>Stuff 2</li>
            <li>Stuff 3</li>
            <li>Stuff 4</li>
        </ul>
    </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

mdx_collapse-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file mdx_collapse-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mdx_collapse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6466c93e1a5039b04a239f52b663af388a9b4f4c48094b26d37a0570063326b1
MD5 adb3766788c0d720c67bad648052073c
BLAKE2b-256 e71d13e0dbc5f5ee1845e5e6c3a4c9661b0b52014c9ddf89fddd0c552eecc372

See more details on using hashes here.

Supported by

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