aboutsummaryrefslogtreecommitdiffstats
path: root/src/rst.pest
diff options
context:
space:
mode:
Diffstat (limited to 'src/rst.pest')
-rw-r--r--src/rst.pest4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rst.pest b/src/rst.pest
index 8e93ede..f9bc4d4 100644
--- a/src/rst.pest
+++ b/src/rst.pest
@@ -38,8 +38,8 @@ hanging_block = _{
// Title. A block type
title = {
- PUSH(adornments) ~ NEWLINE ~ PEEK[..-1] ~ " "* ~ line ~ POP
- | line ~ adornments ~ NEWLINE
+ PUSH(adornments) ~ NEWLINE ~ PEEK[..-1] ~ " "* ~ line ~ PEEK[..-1] ~ POP
+ | line ~ PEEK[..] ~ adornments ~ NEWLINE
}
// Bullet list. A block type.