chiark / gitweb /
m.htmlsanity: clarify the use of expand_links a bit.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 26 Nov 2018 12:27:33 +0000 (13:27 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 26 Nov 2018 13:53:01 +0000 (14:53 +0100)
commit59f7431618c9ee5003d6832bdbf7d714ffe65f02
treea460fd4ce7e7a7ba07bb4d9730ce3dc4d0d171af
parent7746a4e51671e54a65d7a5c5659f8bc10a1ab82d
m.htmlsanity: clarify the use of expand_links a bit.

I wanted to remove it at first, but then realized a more proper solution
would be to not require the user to add random fields to
FORMATTED_FIELDS. In the ideal case the template *could* do just

    {{ field|render_rst|expand_links(article }}

but at the moment Pelican strips all reST formatting from the
non-formatted fields, which kinda prevents this. So keeping the filter
for later when we have this fixed.
doc/plugins/htmlsanity.rst
pelican-plugins/m/htmlsanity.py