diff --git a/src/my-to-text.ts b/src/my-to-text.ts index d8833dd..8f5bb69 100644 --- a/src/my-to-text.ts +++ b/src/my-to-text.ts @@ -14,10 +14,14 @@ export const myToText = ( const rawAttr = getAttrByName(node, lumaTermAttributes.rawTermRef); if (rawAttr?.type !== "mdxJsxAttribute") return STEP_OVER; if (typeof rawAttr.value !== "string") return STEP_OVER; + let text = rawAttr.value; + if (text.startsWith("!")) { + text = text.slice(1); + } return REPLACE( { type: "text", - value: rawAttr.value, + value: text, } satisfies Text, STEP_OVER, );