Skip to content
Permalink
Browse files

added docstring

  • Loading branch information
ralsina committed May 4, 2017
1 parent fc26192 commit 461e3b037966f7b516331d1085f8ea2031429a85
Showing with 1 addition and 0 deletions.
  1. +1 −0 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)

0 comments on commit 461e3b0

Please sign in to comment.
You can’t perform that action at this time.