Skip to content

Conversation

@zackw
Copy link
Contributor

@zackw zackw commented Mar 22, 2015

If the first line of each .md file is exactly '---', subsequent text up to
but not including a line reading '...' or '---' will be passed to PyYAML
for parsing. This is consistent with the behavior of the pelican-md-yaml
plugin. PyYAML need only be installed if this feature is used.

Also, the "plain" key-value metadata syntax is aligned with Python-Markdown.

Also also, hard tabs are now expanded to spaces (this was necessary in
order to align the plain metadata syntax with Python-Markdown) and their
width is controllable in the settings file (new setting PANDOC_TAB_WIDTH).

This pull request is an alternative to #4, "Allow Pandoc to parse metadata rather than doing it in the plugin." They achieve roughly the same effects but involve different design tradeoffs. Please decide which you like better, merge that one and reject the other one.

If the first line of each .md file is exactly '---', subsequent text up to
but not including a line reading '...' or '---' will be passed to PyYAML
for parsing.  This is consistent with the behavior of the pelican-md-yaml
plugin.  PyYAML need only be installed if this feature is used.

Also, the "plain" key-value metadata syntax is aligned with Python-Markdown.

Also also, hard tabs are now expanded to spaces (this was necessary in
order to align the plain metadata syntax with Python-Markdown) and their
width is controllable in the settings file (new setting `PANDOC_TAB_WIDTH`).
@liob
Copy link
Owner

liob commented May 18, 2015

please see conversation in #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants