def setup(app):
setup.app = app
setup.config = app.config
setup.confdir = app.confdir
# app.add_stylesheet('css/md.css')
app.add_config_value('pandoc_from', ['markdown', 'mediawiki'], 'env')
# Directive pandoc:: [file.ext]
app.add_directive('pandoc', MakePandocDirective(''))
# Directive [type]:: [file.xyz] where type can be a pandoc type
# like 'markdown', 'mediawiki'
for from_type in setup.config.pandoc_from:
app.add_directive(from_type, MakePandocDirective(from_type))
return {
'parallel_read_safe' : True,
'parallel_write_safe' : True
}
评论列表
文章目录