mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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)
|
return super().__repr__(self.style, self.content)
|
||||||
|
|
||||||
def to_docbook(self, context=None):
|
def to_docbook(self, context=None):
|
||||||
|
if self.style == 'comment':
|
||||||
|
return ''
|
||||||
|
|
||||||
xml = '<' + self.style + '>'
|
xml = '<' + self.style + '>'
|
||||||
item_xml = [item.to_docbook(context) for item in self.content]
|
item_xml = [item.to_docbook(context) for item in self.content]
|
||||||
xml += ' '.join(item_xml) + '</' + self.style + '>'
|
xml += ' '.join(item_xml) + '</' + self.style + '>'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user