Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: broken renderer.link

Blue Mousebafec0e8f90a
diff --git a/web/app/utils/getPosts.ts b/web/app/utils/getPosts.ts
index 60a55ef44..913ff86d5 100644
--- a/web/app/utils/getPosts.ts
+++ b/web/app/utils/getPosts.ts
@@ -1,11 +1,11 @@
-import { marked } from 'marked'
+import { marked, type Tokens } from 'marked'
import _isEmpty from 'lodash/isEmpty'
import { LoaderFunction } from '@remix-run/node'
import { getBlogPosts, getBlogPost, getBlogPostWithCategory } from 'api'
const renderer = new marked.Renderer()
-renderer.link = (href: string, title: string | null | undefined, text: string) => {
+renderer.link = ({ href, text }: Tokens.Link) => {
const url = new URL(href)
if (url.hostname !== 'swetrix.com') {