Skip to content

Commit

Permalink
Make sure blockquote can continue after embedded list
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Friese <peter@peterfriese.de>
  • Loading branch information
peterfriese committed Dec 23, 2021
1 parent ea9be0c commit 353d2f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Ink/Internal/Blockquote.swift
Expand Up @@ -46,6 +46,9 @@ internal struct Blockquote: Fragment {
case "-", "*", "+", \.isNumber:
let list = try List.read(using: &reader, ignorePrefix: ">")
blockquote.items.append(list)
if reader.currentCharacter == "\n" {
reader.advanceIndex()
}
case ">":
let nestedBlockquote = try Blockquote.read(using: &reader, ignorePrefix: ">")
blockquote.items.append(nestedBlockquote)
Expand Down

0 comments on commit 353d2f5

Please sign in to comment.