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
Jakub Bucko 2020-11-19 18:57:36 +01:00
parent 1184fa0b54
commit 42d928f9c2
1 changed files with 1 additions and 1 deletions

View File

@ -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*$",