def parse(self): content = rt.StaticGroupedFlowables( [rt.Paragraph(rt.Bold('Tip')), super().parse()]) return rt.Framed(content)
def flowable(self): return rt.Framed(super().flowable(), style='admonition')
def flowable(self): title_par = rt.Paragraph(self.title, style='title') content = rt.StaticGroupedFlowables([title_par, super().flowable()]) framed = rt.Framed(content, style='admonition') framed.admonition_type = self.__class__.__name__.lower() return framed
def build_flowable(self): grouped_flowables = super().build_flowable() return rt.Framed(grouped_flowables, style='sidebar')