YAML metadata extension for Python-Markdown
Project description
This extension adds YAML meta data handling to markdown with all YAML features.
As in the original, metadata is parsed but not used in processing.
Metadata parsed as is by PyYaml and without additional transformations, so this plugin is not compatible with original Meta-Data extension.
Basic Usage
import markdown
text = """---
title: What is Lorem Ipsum?
categories:
- Lorem Ipsum
- Stupid content
...
Lorem Ipsum is simply dummy text.
"""
md = markdown.Markdown(['full_yaml_metadata'])
md.convert(text) == '<p>Lorem Ipsum is simply dummy text.</p>'
md.Meta == {'title': 'What is Lorem Ipsum?', 'categories': ['Lorem Ipsum', 'Stupid content']}
Python versions compatibility
This plugin tested with python versions 3.4, 3.5 and 3.6.
For python 3.4 you must install typing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for markdown-full-yaml-metadata-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66dc0a5426777dd840fff90d1fe63d410bc9a867792e7b87c4c0e8517e71e65 |
|
MD5 | 88f25fe1e7010f1a9ff6af63bbf53c8d |
|
BLAKE2b-256 | d48bd6109a6b941cfe167b4924933d331cc7b30cf7cf7c55db607ead13ff1340 |