We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e9976b commit f71c4e8Copy full SHA for f71c4e8
plugins/rehype/heading-slugs.ts
@@ -16,7 +16,7 @@ export default function () {
16
const last = element.children.at(-1);
17
18
// @ts-expect-error this is added by mdast-util-mdx-expression
19
- if (last.type != "mdxTextExpression") {
+ if (last.type === "mdxTextExpression") {
20
const lastElement = last as MdxTextExpression;
21
if (
22
lastElement.value.startsWith("/*") &&
0 commit comments