coqdomain.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:coq-rst 作者: cpitclaudel 项目源码 文件源码
def run(self):
        self.assert_has_content()

        title = self.arguments[0]
        content = '\n'.join(self.content)
        math_node = self.make_math_node(self.prepare_latex(content))

        tid = nodes.make_id(title)
        target = nodes.target('', '', ids=['inference-' + tid])
        self.state.document.note_explicit_target(target)

        term, desc = nodes.term('', title), nodes.description('', math_node)
        dli = nodes.definition_list_item('', term, desc)
        dl = nodes.definition_list(content, target, dli)
        set_source_info(self, dl)
        return [dl]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号