A bootstrap 3 row and columns extension for Markdown
Project description
mdx_attr_cols
=============
|attr-cols-ci-badge|
.. |attr-cols-ci-badge| image:: https://travis-ci.org/CTPUG/mdx_attr_cols.png?branch=master
:alt: Travis CI build status
:scale: 100%
:target: https://travis-ci.org/CTPUG/mdx_attr_cols
A Markdown extension to add support for Bootstrap 3 rows and columns.
Licensed under the `ISC License`_.
.. _ISC License: https://github.com/CTPUG/mdx_attr_cols/blob/master/LICENSE
Requirements
============
The mdx_attr_cols plugin requires the following additional Markdown
plugins:
* `attr_list`_ (built-in to the markdown library)
* `outline`_
.. _attr_list: http://pythonhosted.org/Markdown/extensions/attr_list.html
.. _outline: https://pypi-hypernode.com/pypi/mdx_outline
Installation
============
Install with ``pip install mdx_attr_cols``.
Documentation
=============
Allows creating bootstrap container rows and columns using section
attributes as provided by the attr_list and 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(
extensions=[
'outline',
'attr_list',
'attr_cols',
],
extension_configs={
'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
``['sections']``.
* ``attr``: Name of column width attribute. Default is ``'cols'``.
=============
|attr-cols-ci-badge|
.. |attr-cols-ci-badge| image:: https://travis-ci.org/CTPUG/mdx_attr_cols.png?branch=master
:alt: Travis CI build status
:scale: 100%
:target: https://travis-ci.org/CTPUG/mdx_attr_cols
A Markdown extension to add support for Bootstrap 3 rows and columns.
Licensed under the `ISC License`_.
.. _ISC License: https://github.com/CTPUG/mdx_attr_cols/blob/master/LICENSE
Requirements
============
The mdx_attr_cols plugin requires the following additional Markdown
plugins:
* `attr_list`_ (built-in to the markdown library)
* `outline`_
.. _attr_list: http://pythonhosted.org/Markdown/extensions/attr_list.html
.. _outline: https://pypi-hypernode.com/pypi/mdx_outline
Installation
============
Install with ``pip install mdx_attr_cols``.
Documentation
=============
Allows creating bootstrap container rows and columns using section
attributes as provided by the attr_list and 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(
extensions=[
'outline',
'attr_list',
'attr_cols',
],
extension_configs={
'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
``['sections']``.
* ``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.
Source Distribution
mdx_attr_cols-0.1.1.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file mdx_attr_cols-0.1.1.tar.gz
.
File metadata
- Download URL: mdx_attr_cols-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092c295f8b1f96c7ce3585de5001070bec2b9fd1b2afc30410120709dec4a9b0 |
|
MD5 | 9e17c3397ad35f772c2f70748584407b |
|
BLAKE2b-256 | a0f8b3868cc2d2aed0a106cf762cc28e36458a064dd80d7d43c9bf3bb72257a5 |
File details
Details for the file mdx_attr_cols-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mdx_attr_cols-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fdb24d960cb94bcfb94f1dbcce9d84d835a03a323c79214bf97ad440bce34ab |
|
MD5 | 80ab4a0cbe8b66acd4c6814a0fc10b50 |
|
BLAKE2b-256 | cd8a06347b974c65032a75787bfe469634b30ee4fdb469175ce1bf9f94469ef8 |