Skip to main content

A bootstrap 3 row and columns extension for Markdown

Project description



.. |attr-cols-ci-badge| image::
:alt: Travis CI build status
:scale: 100%

A Markdown extension to add support for Bootstrap 3 rows and columns.

Licensed under the `ISC License`_.

.. _ISC License:


The mdx_attr_cols plugin requires the following additional Markdown

* `attr_list`_ (built-in to the markdown library)
* `mdx_outline`_

.. _attr_list:
.. _mdx_outline:


Install with ``pip install mdx_attr_cols``.


Allows creating bootstrap container rows and columns using section
attributes as provided by the attr_list and mdx_outline extensions.

Markdown example:

.. code:: markdown

Header 1 {: cols=6 }

Some paragraphs go here.

Header 2 {: cols=2 }

More paragraphs go here.

Header 3 {: cols=4 }

Final column.

Header 4

This is not in a row or column.

Python usage:

.. code:: python

md = markdown.Markdown(
'attr_cols': {
'columns': 12,
'attr': 'cols',
'tags': ['section'],

Configuration options:

* ``columns``: Number of columns in a row. Default is ``12``.
* ``tags``: List of HTML tags to look for attributes on. Default is
* ``attr``: Name of column width attribute. Default is ``'cols'``.

Project details

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-attr-cols-0.2.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

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