fix(npf): add indented as subtype in blockquote conversion

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-05-02 12:20:06 -03:00
parent 4cd950a16f
commit 25e94fc788

View File

@@ -77,7 +77,10 @@ impl<'a> TryFrom<&'a Node<'a, RefCell<Ast>>> for objects::Post {
Ok(p)
}
NodeValue::BlockQuote => {
let p = Self::try_from(node.children())?.join_content("\n\n");
let mut p = Self::try_from(node.children())?.join_content("\n\n");
if let BlockValue::Text(ref mut t) = &mut p.content[0] {
t.subtype = Some(BlockTextSubtype::Indented);
}
Ok(p)
}
NodeValue::Text(t) => {