feat(parser): update paragraph style id

This commit is contained in:
syy11cn 2022-06-03 13:59:00 +08:00
parent 4c31ee8479
commit cffd65ec2d
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export function parseTableRow(tokens: Token[]): TableRow {
export function parseParagraph(tokens: Token[]): Paragraph {
const inline = tokens.filter(token => token.type === 'inline')
let style = StyleId.normal
let style = StyleId.p
if (inline[0].children?.length === 1 && inline[0].children[0].tag === 'img')
style = StyleId.image
// Math blocks.