def replace(match): node = self.nodes[int(match.group(1))] filters = match.group(2).strip("|") node.set_html(match.group(3)) return renderer.render(node, filters=filters)
def get_html(self, filters: List[str] = None) -> str: """Renders and returns HTML.""" from mkapi.core.renderer import renderer return renderer.render(self, filters) # type:ignore
def render(self) -> str: """Renders and returns HTML.""" from mkapi.core.renderer import renderer return renderer.render(self) # type:ignore