Flask-FlatPages-Pandoc is an HTML renderer for Flask-FlatPages that uses pandoc as backend.
Flask-FlatPages-Pandoc is very easy to set up. First, install it using pip:
pip install Flask-FlatPages-Pandoc
Then, given that you already have a Flask application instance, all you have to do is:
from flask_flatpages_pandoc import FlatPagesPandoc
pages = FlatPages(app)
FlatPagesPandoc("markdown", app, ["--mathjax"])