示例#1
0
    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)
示例#2
0
    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()
示例#3
0
文件: rst_in.py 项目: wobsta/moin
 def visit_title(self, node):
     self.open_moin_page_node(
         moin_page.h(
             attrib={moin_page.outline_level: repr(self.header_size)}))