From 461e3b037966f7b516331d1085f8ea2031429a85 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 May 2017 17:59:34 -0300 Subject: [PATCH] added docstring --- nikola/filters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nikola/filters.py b/nikola/filters.py index 3a208f0bec..bcfe753d1c 100644 --- a/nikola/filters.py +++ b/nikola/filters.py @@ -396,6 +396,7 @@ def _normalize_html(data): @apply_to_text_file def add_header_permalinks(data): + """Post-process HTML via lxml to add header permalinks Sphinx-style.""" doc = lxml.html.document_fromstring(data) for h in ['h1', 'h2', 'h3', 'h4']: nodes = doc.findall('*//%s' % h)