elmasse/nextein

Position data being removed

elmasse opened this issue · 2 comments

There is an issue with latest version of rehype-raw@^5.0.0 that depends on hast-util-raw@^6 which causes the resulting tree of runSync() to remove position information.

Issue was solved by passing same content as a second argument in runSyncas stated in this issue .

const content = instance.runSync(instance.parse(text), text)