diff --git a/eotdl/eotdl/datasets/ingest.py b/eotdl/eotdl/datasets/ingest.py index 542fc222..4f96b51b 100755 --- a/eotdl/eotdl/datasets/ingest.py +++ b/eotdl/eotdl/datasets/ingest.py @@ -4,6 +4,7 @@ import json import frontmatter import markdown +from markdown.extensions.fenced_code import FencedCodeExtension from ..auth import with_auth from .metadata import Metadata @@ -73,7 +74,7 @@ def ingest_folder( # retrieve dataset (create if doesn't exist) dataset = retrieve_dataset(metadata, user) if content: - content = markdown.markdown(content) + content = markdown.markdown(content, extensions=[FencedCodeExtension()]) update_metadata = True if "description" in dataset: # do not do this if the dataset is new, only if it already exists