From 3e1a64b6f89f857a7f91a06c5d5f2fbba3b76450 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Wed, 4 Sep 2024 06:59:06 +0200 Subject: [PATCH] Fix glossary --- docs/specs/glossary.md | 3 +++ tools/toc_deflist.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/specs/glossary.md b/docs/specs/glossary.md index 0fb967d..436d38a 100644 --- a/docs/specs/glossary.md +++ b/docs/specs/glossary.md @@ -6,11 +6,14 @@ local coordinates and the Y coordinate increasing towards the bottom. Without any transforms, the point $(0, 0)$ corresponds with the top-left corner of the viewport. + render stack : A render stack is a list if rendering primitive to be drawn in inverse stack order. A render stack can contain child stacks. + stacking order : The order in which objects appear in the [[render stack]]. + collected shapes : When collecting shapes for a rendering operation, implementations MUST traverse the [[render stack]] in reverse order. diff --git a/tools/toc_deflist.py b/tools/toc_deflist.py index 81a8efd..9f3525b 100644 --- a/tools/toc_deflist.py +++ b/tools/toc_deflist.py @@ -29,7 +29,7 @@ def run(self, root): term: etree.Element for term in root.findall(".//dt"): if "id" not in term.attrib: - text = toc.unescape(toc.stashedHTML2text(toc.get_name(term), self.md)) + text = toc.unescape(toc.strip_tags(toc.render_inner_html(term, self.md))) id = toc.slugify(text, "-") term.attrib["id"] = id link = etree.Element("a")