mirror of
https://github.com/wanglin2/mind-map
synced 2025-04-29 15:57:33 +08:00
Fix:修复导入md时,如果存在嵌套的无序列表是解析异常的问题
This commit is contained in:
parent
abb332fd46
commit
eb61e24746
@ -1,6 +1,7 @@
|
||||
import { fromMarkdown } from 'mdast-util-from-markdown'
|
||||
|
||||
const getNodeText = node => {
|
||||
if (node.type === 'list') return ''
|
||||
let textStr = ''
|
||||
|
||||
;(node.children || []).forEach(item => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user