diff --git a/snakecore/commands/converters.py b/snakecore/commands/converters.py index 694b836..69398f9 100644 --- a/snakecore/commands/converters.py +++ b/snakecore/commands/converters.py @@ -486,7 +486,7 @@ def from_markdown(cls, markdown: str) -> Self: "argument 'markdown' must be of type 'str' containing a markdown code block, " f"not {markdown.__class__.__name__}" ) - elif not (markdown.startswith("`") and markdown.endswith("`")): + elif markdown == "```" or not (markdown.startswith("`") and markdown.endswith("`")): raise ValueError( "argument 'markdown' does not contain a markdown code block" )