mirror of
https://github.com/sigmasternchen/grimoire
synced 2025-03-15 08:08:55 +00:00
10 lines
319 B
Python
10 lines
319 B
Python
import markdown
|
|
|
|
from grimoiressg.utils import logger
|
|
|
|
|
|
def compile_markdown(data, context, config):
|
|
for entry in data:
|
|
if "markdown" in entry:
|
|
logger.debug("Compiling markdown for %s...", entry['relative_filename'])
|
|
entry["markdown_compiled"] = markdown.markdown(entry["markdown"])
|