Get HtmlReader to work again

wrote unit tests and documentation, improved regular expression.
The HtmlReader is enabled by default now and parses metadata in html
files of the form:
<!-- key:value -->
This commit is contained in:
Florian Jacob 2012-09-02 10:09:08 +02:00
commit 39db9ddcfd
7 changed files with 72 additions and 15 deletions

View file

@ -171,6 +171,17 @@ Markdown posts should follow this pattern::
This is the content of my super blog post.
Your third option is to write raw html (by ending your file in ``.html``)::
<!-- title: My super title -->
<!-- date: 2010-12-03 10:20 -->
<!-- tags: thats, awesome -->
<!-- category: yeah -->
<p>
This is the content of my super blog post.
</p>
Note that, aside from the title, none of this metadata is mandatory: if the date
is not specified, Pelican will rely on the file's "mtime" timestamp, and the
category can be determined by the directory in which the file resides. For

View file

@ -50,9 +50,9 @@ Setting name (default value) What doe
here or a single string representing one locale.
When providing a list, all the locales will be tried
until one works.
`MARKUP` (``('rst', 'md')``) A list of available markup languages you want
`MARKUP` (``('rst', 'md', 'html')``) A list of available markup languages you want
to use. For the moment, the only available values
are `rst` and `md`.
are `rst`, `md` and `html`.
`MD_EXTENSIONS` (``['codehilite','extra']``) A list of the extensions that the Markdown processor
will use. Refer to the extensions chapter in the
Python-Markdown documentation for a complete list of