Skip to content

Commit

Permalink
chore: ignore mdast errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed May 21, 2024
1 parent c470e81 commit 0a917a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/akte/lib/markdownToHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeStringify from "rehype-stringify"

import { visit } from "unist-util-visit"
// @ts-expect-error - Missing types
import type { Code as MDCode, Parent as MDParent, Root as MDRoot } from "mdast"

import { slugify } from "../slufigy"
Expand Down Expand Up @@ -108,6 +109,7 @@ export async function markdownToHTML<TMatter extends Record<string, unknown>>(ma
.use(remarkWikiLink, { aliasDivider: "|" })
.use(remarkExtendedWikiLink)
// Highlight code
// @ts-expect-error - Missing types
.use(remarkHighlightCode)
.use(remarkRehype, { allowDangerousHtml: true })
.use(rehypeExternalLinks, {
Expand Down

0 comments on commit 0a917a4

Please sign in to comment.