Skip to content

Commit 9564bbd

Browse files
committed
fix(renderer): sanitize attribute section table entries
1 parent 778387e commit 9564bbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

quartodoc/renderers/md_renderer.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,12 @@ def render(self, el: ds.DocstringSectionAttributes):
426426
@dispatch
427427
def render(self, el: ds.DocstringAttribute):
428428
annotation = self.render_annotation(el.annotation)
429-
return el.name, self.render_annotation(annotation), el.description
429+
row = [
430+
sanitize(el.name),
431+
self.render_annotation(annotation),
432+
sanitize(el.description or "")
433+
]
434+
return row
430435

431436
# warnings ----
432437

0 commit comments

Comments
 (0)