Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: add no underline to button link in mdx
Marc Seitz8b487551c10c
diff --git a/components/mdx/components/index.tsx b/components/mdx/components/index.tsxindex fa797e71..3fd13747 100644--- a/components/mdx/components/index.tsx+++ b/components/mdx/components/index.tsx@@ -11,7 +11,10 @@ export const mdxComponents: MDXComponents = {// check if external linkslet isExternal = false;// if the link is not from papermark.io, it's external- if (props.href?.startsWith("http") || !props.href?.includes("papermark.io")) {+ if (+ props.href?.startsWith("http") ||+ !props.href?.includes("papermark.io")+ ) {isExternal = true;}@@ -19,7 +22,10 @@ export const mdxComponents: MDXComponents = {// @ts-expect-error legacy refs<Link{...props}- className={cn(props.className, "text-[#fb7a00] font-semibold no-underline hover:underline")}+ className={cn(+ props.className,+ "text-[#fb7a00] font-semibold no-underline hover:underline",+ )}href={props.href || ""}target="_blank"rel={isExternal ? "noopener noreferrer" : undefined}@@ -35,7 +41,10 @@ export const mdxComponents: MDXComponents = {// check if external linkslet isExternal = false;// if the link is not from papermark.io, it's external- if (props.href?.startsWith("http") || !props.href?.includes("papermark.io")) {+ if (+ props.href?.startsWith("http") ||+ !props.href?.includes("papermark.io")+ ) {isExternal = true;}@@ -44,6 +53,7 @@ export const mdxComponents: MDXComponents = {href={props.href || ""}target="_blank"rel={isExternal ? "noopener noreferrer" : undefined}+ className="no-underline"><Buttonvariant={props.variant || "default"}@@ -53,6 +63,6 @@ export const mdxComponents: MDXComponents = {</Button></Link>);- }+ },// any other components you want to use in your markdown};