diff --git a/src/main/java/org/pegdown/Parser.java b/src/main/java/org/pegdown/Parser.java index 90b0ca7..8fe168b 100644 --- a/src/main/java/org/pegdown/Parser.java +++ b/src/main/java/org/pegdown/Parser.java @@ -1327,7 +1327,7 @@ public Rule Code(Rule ticks) { ticks, Sp(), OneOrMore( FirstOf( - Sequence(TestNot('`'), Nonspacechar()), + Sequence(TestNot('`'), NonspacecharAllowLine()), Sequence(TestNot(ticks), OneOrMore('`')), Sequence(TestNot(Sp(), ticks), FirstOf(Spacechar(), Sequence(Newline(), TestNot(BlankLine())))) @@ -1435,7 +1435,11 @@ public Rule Spacechar() { public Rule Nonspacechar() { return Sequence(TestNot(Spacechar()), NotNewline(), ANY); } - + + public Rule NonspacecharAllowLine() { + return Sequence(TestNot(Spacechar()), ANY); + } + @MemoMismatches public Rule NormalChar() { return Sequence(TestNot(SpecialChar()), TestNot(Spacechar()), NotNewline(), ANY);