semvec/pypi-packages huggingface dataset:
mdx_attr_cols 0.2
A bootstrap 3 row and columns extension for Markdown
License: MIT

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)
*  `mdx_outline`_

.. _attr_list: http://pythonhosted.org/Markdown/extensions/attr_list.html
.. _mdx_outline: https://pypi.python.org/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 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(
      extensions=[
          'mdx_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'``.
mdx-variables 0.2
A variables extension for Markdown
License: MIT

mdx_variables
=============

|variables-ci-badge|

.. |variables-ci-badge| image:: https://travis-ci.org/CTPUG/mdx_variables.png?branch=master
    :alt: Travis CI build status
    :scale: 100%
    :target: https://travis-ci.org/CTPUG/mdx_variables

A Markdown extension to add support for variables.

Licensed under the `ISC License`_.

.. _ISC License: https://github.com/CTPUG/mdx_variables/blob/master/LICENSE


Requirements
============

The mdx_variables plugin requires only the base `markdown`_ library.

.. _markdown: http://pythonhosted.org/Markdown/


Installation
============

Install with ``pip install mdx_variables``.


Documentation
=============

Allows inserting variables into Markdown.

The following Markdown example:

.. code:: markdown

  This paragraph contains ${chickens} chickens.

  This paragraph contains no chickens but ${foxes} foxes.

  Are there ninjas here? ${ninjas}.

Might result in:

.. code:: markdown

  This paragraph contains 5 chickens.

  This paragraph contains no chickens but 3 foxes.

  Are there ninjas here? ninjas not found.


Python usage:

.. code:: python

  md = markdown.Markdown(
      extensions=[
          'variables',
      ],
      extension_configs={
          'variables': {
              'vars': {
                'chickens': '5',
                'foxes': (lambda: 3),
                '__getattr__': (lambda name: "{} not found".format(name)),
              },
          }
      })

Configuration options:

* ``vars``: A dictionary mapping variable names to variable values.

  If a value is a function, that function will be called without arguments and
  the result will be used as the variable value.

  The special variable ``__getattr__`` may specify a function
  ``f(name) -> value`` to call when no matching variable is found.