Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set property 'sub_super' of undefined #438

Closed
yCobanoglu opened this issue Jun 7, 2021 · 2 comments
Closed

Cannot set property 'sub_super' of undefined #438

yCobanoglu opened this issue Jun 7, 2021 · 2 comments
Labels
status/duplicate This is "déjà vu" type/bug This is a problem

Comments

@yCobanoglu
Copy link

yCobanoglu commented Jun 7, 2021

import unified from 'unified'
import remarkParse from 'remark-parse'
import remark2rehype from 'remark-rehype'
import stringify from 'rehype-stringify'
import remarkSubSuper from "remark-sub-super"


export default async function markdown2Html(markdown: string): Promise<string> {
  const file = await unified()
    .use(remarkParse)
    .use(remarkSubSuper)
    .use(remark2rehype)
    .use(stringify)
    .process(markdown)
  return String(file)
}

Throws the following typescript error.
Screenshot_2021-06-07_18-15-27

@wooorm
Copy link

wooorm commented Jun 9, 2021

See #416

@StaloneLab
Copy link
Member

Closing as this was answered with further comments.

Feel free to reopen an issue if you need.

@StaloneLab StaloneLab added status/duplicate This is "déjà vu" type/bug This is a problem labels Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This is "déjà vu" type/bug This is a problem
Projects
None yet
Development

No branches or pull requests

3 participants