Fully remove YAML support (to make it easier for third party extensions to take over the job) #434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
YAML support was added and then again removed from the "meta" extension -- since YAML metadata could, should and is be(ing) provided by an additional third party extension. However, the "meta" extension is still parsing metadata that looks like YAML (starting and ending with '---'), but without actually parsing the YAML correctly. This is not only misleading, but also makes it hard for "normal" metadata and YAML-formatted metadata and the corresponding extensions to co-exist (because the "meta" extension consumes the metadata that is supposed to be consumed by the YAML metadata extension).
This pull request provides:
markdown.Meta
attribute, but respects values another extension might already have put theretests/__init__.py
to make tests work on my machineHope this helps. Let me know if you have any suggestions. :)