提交 13d59561 编写于 作者: D DCloud_LXH

fix: insert json

上级 fe920bb8
......@@ -44,8 +44,10 @@ module.exports = function (md, opts) {
const path = jsonPath.split('.');
let temp = json;
path.forEach(key => {
if (!temp) return false;
temp = temp[key];
});
if (!temp) continue
const parseTokens = md.parse(temp, undefined, false);
/* parseTokens.forEach(token => {
if (token.type === 'heading_open') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册