@app.template_filter()
@evalcontextfilter
def mark2html(eval_ctx, value):
    result = value.replace('[s]', '<strong>')
result = result.replace('[/s]', '</strong>')
Jinja2 filter to convert custom markup to html