Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix glossary #95

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/specs/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/toc_deflist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down