mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-24 23:11:33 +01:00
parent
04e108c31e
commit
92764465e0
@ -34,7 +34,7 @@ app.config["FLATPAGES_EXTENSION_CONFIG"] = {
|
|||||||
"fenced_code": {},
|
"fenced_code": {},
|
||||||
"tables": {},
|
"tables": {},
|
||||||
"codehilite": {
|
"codehilite": {
|
||||||
"linenums": "True"
|
"guess_lang": False,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
app.config.from_pyfile(os.environ["FLASK_CONFIG"])
|
app.config.from_pyfile(os.environ["FLASK_CONFIG"])
|
||||||
|
@ -71,7 +71,9 @@ def render_markdown(source):
|
|||||||
def init_app(app):
|
def init_app(app):
|
||||||
global md
|
global md
|
||||||
|
|
||||||
md = Markdown(extensions=app.config["FLATPAGES_MARKDOWN_EXTENSIONS"], output_format="html5")
|
md = Markdown(extensions=app.config["FLATPAGES_MARKDOWN_EXTENSIONS"],
|
||||||
|
extension_configs=app.config["FLATPAGES_EXTENSION_CONFIG"],
|
||||||
|
output_format="html5")
|
||||||
|
|
||||||
@app.template_filter()
|
@app.template_filter()
|
||||||
def markdown(source):
|
def markdown(source):
|
||||||
|
Loading…
Reference in New Issue
Block a user