diff --git a/marimo/_cli/convert/markdown.py b/marimo/_cli/convert/markdown.py index c36fa727de0..584e34cebe6 100644 --- a/marimo/_cli/convert/markdown.py +++ b/marimo/_cli/convert/markdown.py @@ -8,8 +8,6 @@ # Native to python from xml.etree.ElementTree import Element, SubElement -import yaml - # Markdown is a dependency of marimo, as such we utilize it as much as possible # to parse markdown. from markdown import Markdown @@ -30,6 +28,7 @@ from marimo._ast.compiler import compile_cell from marimo._cli.convert.utils import markdown_to_marimo +import yaml # CSafeLoader is faster than SafeLoader. try: from yaml import CSafeLoader as SafeLoader diff --git a/pyproject.toml b/pyproject.toml index 0a7cb5c8979..11757e52f2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,8 @@ dependencies = [ "pygments>=2.13,<3", # for reading, writing configs "tomlkit>= 0.12.0", + # for managing frontmatter headers in markdown + "pyyaml>=6.0", # web server # - 0.22.0 introduced timeout-graceful-shutdown, which we use "uvicorn >= 0.22.0",