예제 #1
0
파일: creole_in.py 프로젝트: steel-ne/moin
    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
 def visit_title(self, node):
     self.open_moin_page_node(
         moin_page.h(
             attrib={moin_page.outline_level: repr(self.header_size)}))