diff --git a/one/build/remark-ref.js b/one/build/remark-ref.js index 5a53daa..40924df 100644 --- a/one/build/remark-ref.js +++ b/one/build/remark-ref.js @@ -28,8 +28,7 @@ export default function attacher () { } visit(tree, NAME, ({ id, value }) => { - let { contents } = render(value, path, data) - data.refs[id] = contents + data.refs[id] = () => render(value, path, data).contents }) remove(tree, NAME) @@ -42,7 +41,7 @@ export default function attacher () { parent.children.splice(index, 1, { type: 'html', - value: data.refs[id] + value: data.refs[id]() }) }) }