Thanks. I reworked your example to keep the md and remove the YAML:
# Remove YAML block
mdlines = readlines(file)
md = join(mdlines[findall(x -> x=="---", mdlines)[2]+1:end], "\n")
write(file, md)
Thanks. I reworked your example to keep the md and remove the YAML:
# Remove YAML block
mdlines = readlines(file)
md = join(mdlines[findall(x -> x=="---", mdlines)[2]+1:end], "\n")
write(file, md)