YAML metadata extension for Python-Markdown
Project description
YAML metadata extension for Python-Markdown
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(extensions = ['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.6 and 3.7.
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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2173fb63a912774fc6db3471a0ee281b516bb625856f603fd6f078113b7cfa7a |
|
MD5 | ed3bfbef3d1e5a7ab9a31a826c3776b9 |
|
BLAKE2b-256 | b94a2f646e7bde17c4fc0060c7f42bd228dd1dc3cf345941f3c585f7177171ca |