Metadata-Version: 2.1
Name: pandoc-attrs
Version: 0.1.7
Summary: An Attribute class to be used with pandocfilters
Home-page: http://github.com/kiwi0fruit/pandoc-attrs
Author: Aaron O'Leary
Author-email: dev@aaren.me
License: BSD 2-Clause
Description: # pandoc-attrs
        
        <a href='https://travis-ci.org/kiwi0fruit/pandoc-attrs'> <img src='https://api.travis-ci.org/kiwi0fruit/pandoc-attrs.png?branch=master'></a>
        
        This is a simple parser / emitter for pandoc block attributes,
        intended for use with [pandocfilters].
        
        [pandocfilters]: https://github.com/jgm/pandocfilters
        
        It can read and write attributes in any of these formats:
            - markdown
            - html
            - dictionary
            - pandoc
        
        Installation:
        
            pip install pandoc-attrs
        
        Usage:
        
        ```python
        from pandocattrs import PandocAttributes
        
        attrs = '#id .class1 .class2 key=value'
        attributes = PandocAttributes(attrs, format='markdown')
        
        attributes.to_markdown()
        >>> '{#id .class1 .class2 key=value}'
        
        attributes.to_dict()
        >>> {'id': 'id', 'classes': ['class1', 'class2'], 'key'='value'}
        
        attributes.to_html()
        >>> id="id" class="class1 class2" key='value'
        
        attributes.to_pandoc()
        >>> ['id', ['class1', 'class2'], [['key', 'value']]]
        
        attributes.id
        >>> 'id'
        
        attributes.classes
        >>> ['class1', 'class2']
        
        attributes.kvs
        >>> OrderedDict([('key', 'value')])
        ```
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
