Skip to content

Language not registered error #73

Description

@adamyonk

I'm trying to use in a chain like:

export default async function markdownToHtml(markdown: string) {
  const result = await unified()
    .use(remarkParse)
    .use(remarkRehype, { allowDangerousHtml: true })
    .use(rehypeRaw)
    .use(rehypePrismPlus)
    .use(rehypeStringify)
    .process(markdown);
  return result.toString();
}

And I'm getting an error: Unknown language: `html` is not registered, even though it's in the list of default refractor languages. Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions