|
|
|
@ -740,20 +740,8 @@ function markdown(inputfile, outputdir=pwd(); config::AbstractDict=Dict(), kwarg |
|
|
|
|
|
|
|
|
|
|
|
#______________________________________________________________________________________________________________ |
|
|
|
#______________________________________________________________________________________________________________ |
|
|
|
if containsYAML(chunk) # This part is the only change. It (should) delete the YAML Admo for non Carpentries MD. |
|
|
|
if containsYAML(chunk) # This part is the only change. It (should) delete the YAML Admo for non Carpentries MD. |
|
|
|
str = chunkToMD(chunk) |
|
|
|
|
|
|
|
mdContent = str.content |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for item in mdContent |
|
|
|
|
|
|
|
if isa(item, Markdown.Admonition) |
|
|
|
|
|
|
|
if startswith(strip(line.first * line.second), "!!! carp") |
|
|
|
|
|
|
|
continue |
|
|
|
continue |
|
|
|
end |
|
|
|
end |
|
|
|
else |
|
|
|
|
|
|
|
result=string(Markdown.MD(item)) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
write(iomd, result, '\n') |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
#______________________________________________________________________________________________________________ |
|
|
|
#______________________________________________________________________________________________________________ |
|
|
|
|
|
|
|
|
|
|
|
for line in chunk.lines |
|
|
|
for line in chunk.lines |
|
|
|
|