Skip to content

Commit

Permalink
tweak inline parser
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Nov 14, 2014
1 parent b1c3df3 commit 0a73bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/markdown/parse/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function parse_inline_wrapper(stream::IO, delimiter::String; rep = false)
buffer = IOBuffer()
while !eof(stream)
char = read(stream, Char)
if !(char in whitespace) && startswith(stream, delimiter^n)
if !(char in whitespace || char == '\n') && startswith(stream, delimiter^n)
write(buffer, char)
return takebuf_string(buffer)
end
Expand Down

0 comments on commit 0a73bbd

Please sign in to comment.