i had meet this problem.
TypeError: Cannot read property 'type' of undefined
and i found the problem is from dist/index.js at 55 line and src/index.js at 174
if (heading.children && heading.children[0].type === "link_open") {
the problem is heading.children's length is 0 and try to get the element from heading.children.
and i found the problem had been solved in gist src/index.js at Line 173
now the latest is v4.1.2, update npm release version please.
i had meet this problem.
TypeError: Cannot read property 'type' of undefined
and i found the problem is fromdist/index.js
at 55 line andsrc/index.js
at 174if (heading.children && heading.children[0].type === "link_open") {
the problem isheading.children
's length is 0 and try to get the element fromheading.children
. and i found the problem had been solved in gistsrc/index.js
at Line 173 now the latest is v4.1.2, update npm release version please.