diff --git a/www/data/showcase.json b/www/data/showcase.json index 27a523d0..bb81791a 100644 --- a/www/data/showcase.json +++ b/www/data/showcase.json @@ -183,7 +183,7 @@ "image": "kadode_portal" }, { - "title": "Craig's Deno Diary", + "title": "Craig’s Deno Diary", "link": "https://deno-blog.com", "github": "https://github.com/cdoremus/deno-blog", "image": "deno-diary" @@ -358,7 +358,7 @@ "image": "liberchat" }, { - "title": "Do not remove this, it's for preventing conflicts by trailing comma", + "title": "Do not remove this, it’s for preventing conflicts by trailing comma", "link": "", "github": "", "image": "" diff --git a/www/deno.json b/www/deno.json index eec43cc7..9034e96a 100644 --- a/www/deno.json +++ b/www/deno.json @@ -13,7 +13,9 @@ "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", "$std/": "https://deno.land/std@0.193.0/", - "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts" + "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", + "$marked-mangle": "https://esm.sh/marked-mangle@1.0.1", + "$marked-smartypants": "https://esm.sh/marked-smartypants@1.0.1" }, "compilerOptions": { "jsx": "react-jsx", diff --git a/www/routes/_404.tsx b/www/routes/_404.tsx index 8eb2867c..addce283 100644 --- a/www/routes/_404.tsx +++ b/www/routes/_404.tsx @@ -30,6 +30,6 @@ export function ServerCodePage( export default function PageNotFound() { return ServerCodePage({ serverCode: 404, - codeDescription: "Couldn't find what you're looking for.", + codeDescription: "Couldn’t find what you’re looking for.", }); } diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx index 2968b0d3..ecc457dc 100644 --- a/www/routes/docs/[...slug].tsx +++ b/www/routes/docs/[...slug].tsx @@ -12,6 +12,11 @@ import { } from "../../data/docs.ts"; import { frontMatter, gfm } from "../../utils/markdown.ts"; import toc from "../../../docs/toc.ts"; +import { mangle } from "$marked-mangle"; +import { markedSmartypants } from "$marked-smartypants"; + +gfm.Marked.marked.use(mangle()); +gfm.Marked.marked.use(markedSmartypants()); interface Data { page: Page; diff --git a/www/routes/showcase.tsx b/www/routes/showcase.tsx index ef55d625..67c9690e 100644 --- a/www/routes/showcase.tsx +++ b/www/routes/showcase.tsx @@ -34,7 +34,7 @@ export default function ShowcasePage(props: PageProps) {

- You can add these stylish badges to your project's README to show + You can add these stylish badges to your project’s README to show that it was built with Fresh.