跳转到主要内容

Markdown的Bootstrap 3行和列扩展

项目描述

mdx_attr_cols

Travis CI build status

Markdown扩展,支持Bootstrap 3行和列。

许可协议ISC许可证

要求

mdx_attr_cols插件需要以下额外的Markdown插件

安装

使用pip install mdx_attr_cols安装。

文档

允许使用attr_list和mdx_outline扩展提供的部分属性创建Bootstrap容器行和列。

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使用

md = markdown.Markdown(
    extensions=[
        'mdx_outline',
        'attr_list',
        'attr_cols',
    ],
    extension_configs={
        'attr_cols': {
            'columns': 12,
            'attr': 'cols',
            'tags': ['section'],
        }
    })

配置选项

  • columns:一行中的列数。默认为12

  • tags:要查找属性的HTML标签列表。默认为['sections']

  • attr:列宽属性的名称。默认为'cols'

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包的信息

源代码分发

mdx-attr-cols-0.2.tar.gz (5.0 kB 查看哈希值)

上传时间: 源代码

支持