def block_head_repl(self, _iter_content, stack, head, head_head, head_text): stack.clear() attrib = {moin_page.outline_level: str(len(head_head))} element = moin_page.h(attrib=attrib, children=(head_text, )) stack.top_append(element)
def block_head_repl(self, _iter_content, stack, head, head_head, head_text): stack.clear() attrib = {moin_page.outline_level: str(len(head_head))} element = moin_page.h(attrib=attrib) stack.push(element) # heading text may have wiki markup, including links self.parse_inline(head_text, stack, self.inline_re) stack.pop()
def visit_title(self, node): self.open_moin_page_node( moin_page.h( attrib={moin_page.outline_level: repr(self.header_size)}))