From 99cb268deb0e8efd76e9315840da52bdc4ec1c47 Mon Sep 17 00:00:00 2001 From: Mike Innes Date: Fri, 14 Nov 2014 17:38:45 +0000 Subject: [PATCH] tweak inline parser --- base/markdown/parse/util.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/markdown/parse/util.jl b/base/markdown/parse/util.jl index 3ddb0e98bad3f7..58ae86376d954d 100644 --- a/base/markdown/parse/util.jl +++ b/base/markdown/parse/util.jl @@ -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