Get Literate.jl to ignore docstrings

It works for me. Are you on Windows? Perhaps you need to prepend (*ANYCRLF) to the regex then, i.e.

function remove_docstrings(str)
    return replace(str, r"(*ANYCRLF)^\"\"\"$.*?^\"\"\"$"ms => "")
end
1 Like