Skip to content
Browse files
added docstring
  • Loading branch information
Roberto Alsina committed May 4, 2017
1 parent fc26192 commit 461e3b037966f7b516331d1085f8ea2031429a85
Showing 1 changed file with 1 addition and 0 deletions.
@@ -396,6 +396,7 @@ def _normalize_html(data):

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.