From a4258167df2094ddb1ba45251144d8e751024b0e Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Add spec for unlabeled code blocks --- spec/renderers_spec.moon | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/renderers_spec.moon b/spec/renderers_spec.moon index 710f65b..cfd27b4 100644 --- a/spec/renderers_spec.moon +++ b/spec/renderers_spec.moon @@ -69,6 +69,14 @@ this code block has an unknown label assert.same [[
this code block has an unknown label
]], out + it "doesn't highlight unlabeled code blocks", -> + out = flatten_html render [[ +``` +this code block has no label +```]] + + assert.same [[
this code block has no label
]], out + it "defaults to pandoc highlighting when pygments fails to recognize code language", -> out = flatten_html render [[ ```heex