mirror of https://github.com/mpastell/Weave.jl
fix error in markdown pandoc
I used `nothing` for `code_script` regex string in pandoc mode, which caused `MethodError`. Now I replaced it with `a^`pull/407/head
parent
1184fa0b54
commit
42d928f9c2
|
@ -4,7 +4,7 @@ function parse_markdown(document_body; is_pandoc = false)
|
|||
code_start, code_end, code_script = if is_pandoc
|
||||
r"^<<(?<options>.*?)>>=\s*$",
|
||||
r"^@\s*$",
|
||||
nothing #TODO
|
||||
r"a^" # match nothing TODO
|
||||
else
|
||||
r"^[`~]{3}(\{?)julia\s*([;,]?)\s*(?<options>.*?)(\}|\s*)$",
|
||||
r"^[`~]{3}\s*$",
|
||||
|
|
Loading…
Reference in New Issue