diff --git a/client/lib/render-markdown.tsx b/client/lib/render-markdown.tsx index 820df8d5..e3c30843 100644 --- a/client/lib/render-markdown.tsx +++ b/client/lib/render-markdown.tsx @@ -8,31 +8,32 @@ delete defaultProps.theme const renderer = new marked.Renderer() -renderer.heading = (text, level, _, slugger) => { - const id = slugger.slug(text) - const Component = `h${level}` +// renderer.heading = (text, level, _, slugger) => { +// const id = slugger.slug(text) +// const Component = `h${level}` - return renderToStaticMarkup( - //@ts-ignore - - - {text} - - - ) -} +// return renderToStaticMarkup( +// //@ts-ignore +// +// +// {text} +// +// +// ) +// } -renderer.link = (href, _, text) => { - const isHrefLocal = href?.startsWith('/') || href?.startsWith('#') - if (isHrefLocal) { - return renderToStaticMarkup( - - {text} - - ) - } - return `${text}` -} +// TODO: support elements inside link +// renderer.link = (href, _, text) => { +// const isHrefLocal = href?.startsWith('/') || href?.startsWith('#') +// if (isHrefLocal) { +// return renderToStaticMarkup( +// +// {text} +// +// ) +// } +// return `${text}` +// } renderer.image = function (href, _, text) { return `${text}` diff --git a/client/styles/markdown.css b/client/styles/markdown.css index ec6c58a6..0060c342 100644 --- a/client/styles/markdown.css +++ b/client/styles/markdown.css @@ -97,7 +97,6 @@ input[type="checkbox"]:focus { article *:not(pre) > code { font-weight: 500; font-family: var(--font-sans); - font-size: 1rem; } article li > p { diff --git a/server/src/lib/render-markdown.tsx b/server/src/lib/render-markdown.tsx index 820df8d5..e3c30843 100644 --- a/server/src/lib/render-markdown.tsx +++ b/server/src/lib/render-markdown.tsx @@ -8,31 +8,32 @@ delete defaultProps.theme const renderer = new marked.Renderer() -renderer.heading = (text, level, _, slugger) => { - const id = slugger.slug(text) - const Component = `h${level}` +// renderer.heading = (text, level, _, slugger) => { +// const id = slugger.slug(text) +// const Component = `h${level}` - return renderToStaticMarkup( - //@ts-ignore - - - {text} - - - ) -} +// return renderToStaticMarkup( +// //@ts-ignore +// +// +// {text} +// +// +// ) +// } -renderer.link = (href, _, text) => { - const isHrefLocal = href?.startsWith('/') || href?.startsWith('#') - if (isHrefLocal) { - return renderToStaticMarkup( - - {text} - - ) - } - return `${text}` -} +// TODO: support elements inside link +// renderer.link = (href, _, text) => { +// const isHrefLocal = href?.startsWith('/') || href?.startsWith('#') +// if (isHrefLocal) { +// return renderToStaticMarkup( +// +// {text} +// +// ) +// } +// return `${text}` +// } renderer.image = function (href, _, text) { return `${text}`