Browse Source

Forgot the for loop around the function.

pull/220/head
Jonas Kroll 2 years ago
parent
commit
01b6da57ad
  1. 4
      src/Literate.jl

4
src/Literate.jl

@ -541,6 +541,7 @@ end @@ -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) @@ -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

Loading…
Cancel
Save