Skip to content

Commit 99e4a84

Browse files
committed
Fix a deprecated int-to-char comparison in markdown
similar to #10833, only happens with windows line endings
1 parent e55f726 commit 99e4a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/markdown/Common/block.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function paragraph(stream::IO, md::MD)
1919
while !eof(stream)
2020
char = read(stream, Char)
2121
if char == '\n' || char == '\r'
22-
char == '\r' && peek(stream) == '\n' && read(stream, Char)
22+
char == '\r' && Char(peek(stream)) == '\n' && read(stream, Char)
2323
if prev_char == '\\'
2424
write(buffer, '\n')
2525
elseif blankline(stream) || parse(stream, md, breaking = true)

0 commit comments

Comments
 (0)