From 01b6da57adcaa914484d875d2cc420e2ce0b2dd1 Mon Sep 17 00:00:00 2001 From: Jonas Kroll Date: Fri, 28 Jul 2023 11:22:16 +0200 Subject: [PATCH] Forgot the for loop around the function. --- src/Literate.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Literate.jl b/src/Literate.jl index 1321c87..079918b 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -541,6 +541,7 @@ end # Define general functions needed for admonitions formating. function containsAdmonition(chunk) + for line in chunk.lines if startswith(strip(line.first * line.second), "!!!") return true end @@ -549,10 +550,11 @@ function containsAdmonition(chunk) end function containsYAML(chunk) + for line in chunk.lines if startswith(strip(line.first * line.second), "!!! carp") return true end - #??? + end return false end