2014-03-26 10:18:33 +00:00
pandoc_reader
=============
2014-10-16 08:22:06 +00:00
A pandoc [markdown] reader plugin for [pelican]
2014-03-26 10:35:07 +00:00
Requirements
------------
- [pandoc] in $PATH
2015-05-16 18:13:47 +00:00
- [PyYAML] installed if you want to parse [YAML metadata]
2014-03-26 10:35:07 +00:00
Installation
------------
2014-04-02 08:49:14 +00:00
Instructions for installation of pelican plugins can be obtained from the [pelican plugin manual ](https://github.com/getpelican/pelican-plugins/blob/master/Readme.rst ).
2014-03-26 10:35:07 +00:00
Configuration
-------------
Additional command line parameters can be passed to pandoc via the PANDOC_ARGS parameter.
PANDOC_ARGS = [
'--mathjax',
'--smart',
'--toc',
'--toc-depth=2',
'--number-sections',
]
2014-11-26 18:42:37 +00:00
Pandoc's markdown extensions can be enabled or disabled via the
PANDOC_EXTENSIONS parameter.
PANDOC_EXTENSIONS = [
'+hard_line_breaks',
'-citations'
]
2014-03-26 10:35:07 +00:00
2015-05-16 18:13:47 +00:00
YAML Metadata
-------------
No configuration is required to use YAML metadata. Simply include it at the top
of your post, started by `---` and terminated by `---` or `...` . If PyYAML is
not installed, the data will be parsed by the normal metadata parser instead.
For example:
---
title: Using YAML with Pandoc!
author: Your Name
date: 2015-05-15 14:07
description: >
You can include long, multiline descriptions which
can wrap across multiple lines (and will be joined
by YAML).
complex:
- or complex data structures
- like lists
...
2014-04-26 11:08:59 +00:00
Contributing
------------
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
2014-10-16 08:22:06 +00:00
[markdown]: http://daringfireball.net/projects/markdown/
2014-03-26 10:35:07 +00:00
[pandoc]: http://johnmacfarlane.net/pandoc/
2014-10-16 08:22:06 +00:00
[pelican]: http://getpelican.com
2015-05-16 18:13:47 +00:00
[PyYAML]: http://pyyaml.org/
[YAML metadata]: http://pandoc.org/README.html#extension-yaml_metadata_block