Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mdx_collapse-0.1.0.tar.gz (7.1 kB) Copy SHA256 hash SHA256 Source None Aug 26, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page