def md(request, text): out = [] for line in text.splitlines(): if line.startswith('@'): line = process(request, line) out.append(line) text = '\n'.join(out) return markdown.markdown(text, [mdx_enhanced_image])
def md(text): return markdown.markdown(text, [mdx_enhanced_image])