Fail and exit on restructuredtext syntax error
Run tag name through escape filter to avoid invalid HTML

If a tag contains characters like <> or &, we currently generate invalid HTML.
This is easily fixed by sending the tag through the jinja escape filter.

(This bug is not theoretical, I hit it when using C++ template names for tags,
 like "boost::variant<>".)
add lang support for drafts (#826 & #1107)

Fix #826
Fix #1107
Merge pull request #1201 from hrbonz/draft_lang

Add language support for drafts
Merge pull request #1267 from mlang/escape-for-html

Run tag names through escape filter to avoid invalid HTML
Minor improvements to Settings docs
Add the setting SLUGIFY_ATTRIBUTE
Merge pull request #1248 from th3aftermath/AddSlugifyAttribute

Add the setting SLUGIFY_SOURCE. Refs: #197
Fix Issue #1165 allows extensions to be set by certain settings

PAGINATION_PATTERNS was hard coded so that all files had a ".html" extension. This fixes that and add a test to
ensure that the pagination code is not changing the filename incorrectly.
Merge pull request #1191 from th3aftermath/FixIssue1165

Remove spurious .html suffix. Fix bug #1165
Merge pull request #1224 from leplatrem/patch-1

Exit code should not be successful on reStructuredText errors