Skip to content

Commit f71c4e8

Browse files
committed
fix: mdxTextExpression comparison
1 parent 8e9976b commit f71c4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/rehype/heading-slugs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function () {
1616
const last = element.children.at(-1);
1717

1818
// @ts-expect-error this is added by mdast-util-mdx-expression
19-
if (last.type != "mdxTextExpression") {
19+
if (last.type === "mdxTextExpression") {
2020
const lastElement = last as MdxTextExpression;
2121
if (
2222
lastElement.value.startsWith("/*") &&

0 commit comments

Comments
 (0)