File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 116116__author__ = "Trent Mick"
117117
118118import argparse
119+ import html
119120import logging
120121import re
121122import sys
@@ -1578,7 +1579,7 @@ def header_id_from_text(self,
15781579 None to not have an id attribute and to exclude this header from
15791580 the TOC (if the "toc" extra is specified).
15801581 """
1581- header_id = _slugify (text )
1582+ header_id = _slugify (html . unescape ( text ) )
15821583 if prefix and isinstance (prefix , str ):
15831584 header_id = prefix + '-' + header_id
15841585
Original file line number Diff line number Diff line change 1+ < h1 id ="escaped-lt "> <escaped-lt</ h1 >
2+
3+ < h1 id ="rd-notes "> R&D Notes</ h1 >
4+
5+ < h1 id ="normal-header "> Normal Header</ h1 >
Original file line number Diff line number Diff line change 1+ {"extras": ["header-ids"]}
Original file line number Diff line number Diff line change 1+ # <escaped-lt
2+
3+ # R&D Notes
4+
5+ # Normal Header
You can’t perform that action at this time.
0 commit comments