Pandoc, Markdown

This commit is contained in:
Andrei Astafev 2019-04-20 11:37:35 +03:00
parent caf090e2c1
commit 9ed0a3d3ba

View File

@ -59,7 +59,10 @@ MARKDOWN = {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'markdown.extensions.toc': {
'title': 'Содержание'
},
} ,
'output_format': 'html5',
}
@ -77,9 +80,27 @@ I18N_GETTEXT_DOMAIN = 'messages'
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
PLUGIN_PATHS = ["plugins/official", "plugins/thirdparty"]
PLUGINS = [i18n(), "md-metayaml", "render_math", "series", "subcategory", "tag_cloud", "tipue_search", "pelican-css"]
PLUGINS = [i18n(), "pelidoc", "md-metayaml", "render_math", "series", "subcategory", "tag_cloud", "tipue_search", "pelican-css"]
#PLUGINS = ["better_tables", "just_table"]
PDF_PROCESSOR = True
PANDOC_OUTPUTS = {
'pdf': 'pdf',
}
PANDOC_EXTRA_OPTIONS = [
"--toc",
"-V", "toc-title:Содержание",
"-F", "skip-toc-tag",
"--template=wiki",
"--pdf-engine=xelatex"
]
PANDOC_MARKDOWN_EXTENSIONS = [
"+smart"
]
#YUICOMPRESSOR_EXECUTABLE = "yui-compressor"
#PLUGINS += ["yuicompressor"]