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

Metadata in blocks #224

Merged
merged 8 commits into from Sep 2, 2016

Conversation

Projects
None yet
2 participants
@oz123
Contributor

oz123 commented Aug 24, 2016

This is a fix for #223

So now you can specify metadata values in an idented block prefixed by ">". For example:


---
test: abc
this-is : a hyphen test
    leading~space   : is okay 
 And: some, cvs, data, which, you, must, parse, yourself
empty   :
and some: >
 long value
 that goes multiline
another: example

---
# The real text

This should be parsed as before

Show outdated Hide outdated lib/markdown2.py Outdated
@nicholasserra

This comment has been minimized.

Show comment
Hide comment
@nicholasserra

nicholasserra Sep 1, 2016

Collaborator

Just starting to look at this, apologies for the delay :P Thanks!

Collaborator

nicholasserra commented Sep 1, 2016

Just starting to look at this, apologies for the delay :P Thanks!

@oz123

This comment has been minimized.

Show comment
Hide comment
@oz123

oz123 Sep 1, 2016

Contributor

@trentm, I renamed p, as you wished.

Contributor

oz123 commented Sep 1, 2016

@trentm, I renamed p, as you wished.

Show outdated Hide outdated test/tm-cases/metadata2.text Outdated
@nicholasserra

This comment has been minimized.

Show comment
Hide comment
@nicholasserra

nicholasserra Sep 2, 2016

Collaborator

Looks good, thanks!

Collaborator

nicholasserra commented Sep 2, 2016

Looks good, thanks!

@nicholasserra nicholasserra merged commit fb8f9ad into trentm:master Sep 2, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment