mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
wikiparser: Don't render Admonition with style comment
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 file changed
+3
@@ -477,6 +477,9 @@ class Admonition(Element):
|
||||
return super().__repr__(self.style, self.content)
|
||||
|
||||
def to_docbook(self, context=None):
|
||||
if self.style == 'comment':
|
||||
return ''
|
||||
|
||||
xml = '<' + self.style + '>'
|
||||
item_xml = [item.to_docbook(context) for item in self.content]
|
||||
xml += ' '.join(item_xml) + '</' + self.style + '>'
|
||||
|
||||
Reference in new issue
Block a user