chiark / gitweb /
m.htmlsanity: improve detection for applying typography improvements.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 19 Dec 2017 15:46:32 +0000 (16:46 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 19 Dec 2017 15:49:44 +0000 (16:49 +0100)
commit73796295ad667e0af5681c65774f3afbe323aa90
tree8dc0650d7cc924fff12a43d75be19200dd5474c9
parent84cbddb24505542216be4f56fc3ddc529885c62e
m.htmlsanity: improve detection for applying typography improvements.

Previously smart quotes were applied to arbitrary fields and even field
names. Ugh. And author was hyphenated + smart quoted but a category/tag
not.

Also, have fun spotting the differences in the test files :P
doc/plugins/htmlsanity.rst
pelican-plugins/m/htmlsanity.py
pelican-plugins/m/test/htmlsanity_typography/article-jumbo.html
pelican-plugins/m/test/htmlsanity_typography/article-lang.html
pelican-plugins/m/test/htmlsanity_typography/articles/jumbo.rst
pelican-plugins/m/test/htmlsanity_typography/author-an-author.html
pelican-plugins/m/test/htmlsanity_typography/category-a-category.html
pelican-plugins/m/test/htmlsanity_typography/tag-tagging-a-name.html