Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toml metadata #2803

Merged
merged 8 commits into from May 28, 2017

Conversation

@ralsina
Copy link
Member

ralsina commented May 28, 2017

2nd branch in the #2801 story: naive support for TOML metadata

ralsina added 6 commits May 28, 2017
@@ -1023,6 +1031,28 @@ def _get_metadata_from_file(meta_data):
if not meta_data[0]:
meta_data = meta_data[1:]

# If 1st line is '---', then it's YAML metadata

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska May 28, 2017

Member

Perhaps it should be more generic? Also, how will things like reST react to metadata in this format?

This comment has been minimized.

Copy link
@ralsina

ralsina May 28, 2017

Author Member

It works just fine, because we are removing metadata before feeding it to docutils.

It does mean you can't use docutils rst2html with a post anymore.

@ralsina ralsina merged commit 1ea109b into master May 28, 2017
5 checks passed
5 checks passed
codacy/pr Good work! A positive pull request.
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@ralsina ralsina deleted the toml-metadata branch May 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.