A bootstrap 3 row and columns extension for Markdown
Project description
mdx_attr_cols
A Markdown extension to add support for Bootstrap 3 rows and columns.
Licensed under the ISC License.
Requirements
The mdx_attr_cols plugin requires the following additional Markdown plugins:
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:
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:
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
File details
Details for the file mdx-attr-cols-0.1.2.tar.gz
.
File metadata
- Download URL: mdx-attr-cols-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6685e908ac51197277b7fe86f5ad593dad2efc53412e542855353a9fe43443e4 |
|
MD5 | bb2c131c8e408cd949d446b6fa00a35b |
|
BLAKE2b-256 | a35714c5391f85313b96c869fcc4f717f3beb45054a7f9a06c5fb20be9d232d2 |