mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
wikiparser: Don't render Admonition with style comment
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
bf2518bd0d
commit
ce642e3e87
@ -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 + '>'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user