Skip to content

Open-source status page, incident response and uptime monitoring

fix: table render issue on blog (#1257)

Abhishek9442e1f0b0a9
diff --git a/apps/web/content-collections.ts b/apps/web/content-collections.ts
index 6b3d7740c..284a6c0b2 100644
--- a/apps/web/content-collections.ts
+++ b/apps/web/content-collections.ts
@@ -4,6 +4,7 @@ import readingTime from "reading-time";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypePrettyCode from "rehype-pretty-code";
import rehypeSlug from "rehype-slug";
+import remarkGfm from "remark-gfm";
const autolinkHeadings = [
rehypeAutolinkHeadings,
@@ -61,6 +62,7 @@ const posts = defineCollection({
const mdx = await compileMDX(context, document, {
// @ts-expect-error
rehypePlugins: [rehypeSlug, prettyCode, autolinkHeadings],
+ remarkPlugins: [remarkGfm],
});
return {
...document,
diff --git a/apps/web/package.json b/apps/web/package.json
index dbb427309..f9bb36390 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -78,6 +78,7 @@
"recharts": "2.15.0",
"rehype-pretty-code": "0.10.0",
"rehype-react": "7.2.0",
+ "remark-gfm": "4.0.1",
"remark-parse": "10.0.2",
"remark-rehype": "10.1.0",
"resend": "4.0.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bb2f210ab..d40249fdd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -98,7 +98,7 @@ importers:
version: 2.6.2
drizzle-orm:
specifier: 0.35.3
hono:
specifier: 4.5.3
version: 4.5.3
@@ -398,6 +398,9 @@ importers:
rehype-react:
specifier: 7.2.0
version: 7.2.0(@types/[email protected])
+ remark-gfm:
+ specifier: 4.0.1
+ version: 4.0.1
remark-parse:
specifier: 10.0.2
version: 10.0.2
@@ -534,7 +537,7 @@ importers:
version: link:../../packages/tsconfig
'@types/bun':
specifier: latest
- version: 1.2.12
+ version: 1.2.13
typescript:
specifier: 5.6.2
version: 5.6.2
@@ -648,10 +651,10 @@ importers:
drizzle-orm:
specifier: 0.35.3
drizzle-zod:
specifier: 0.5.1
zod:
specifier: 3.23.8
version: 3.23.8
@@ -4690,8 +4693,8 @@ packages:
resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-lY/GQTXDGsolT/TiH72p1tuyUORuRrdV7VwOTOjDOt8uTBJQOJc5zz3ufwwDl0VBaoxotSk4LdP0hhjLJ6ypIQ==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-u6vXep/i9VBxoJl3GjZsl/BFIsvML8DfVDO0RYLEwtSZSp981kEO1V5NwRcO1CPJ7AmvpbnDCiMKo3JvbDEjAg==}
resolution: {integrity: sha512-2in/lrHRNmDvHPgyormtEralhPcN3An1gLjJzj2Bw145VBxkQ75JEXW6CTdMAwShiHQcYsl2d10IjQSdJSJz4g==}
@@ -5306,8 +5309,8 @@ packages:
resolution: {integrity: sha512-2dNB+dBwAcFW7RSd4y5vKycRjouKVklSwPk4EjBKWvcMYUBOqZGGNzV7+b2tfKBG3BeRXnozbnegVKR1azuATg==}
- resolution: {integrity: sha512-tvWMx5vPqbRXgE8WUZI94iS1xAYs8bkqESR9cxBB1Wi+urvfTrF1uzuDgBHFAdO0+d2lmsbG3HmeKMvUyj6pWA==}
+ resolution: {integrity: sha512-rRjA1T6n7wto4gxhAO/ErZEtOXyEZEmnIHQfl0Dt1QQSB4QV0iP6BZ9/YB5fZaHFQ2dwHFrmPaRQ9GGMX01k9Q==}
resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}
@@ -8263,9 +8266,6 @@ packages:
resolution: {integrity: sha512-XTFYvNASMe5iPN0719nPrdItC9aU0ssC4v14mH1BCi1u0n1gAocqcujWUrByftZTbLhRtiKRyjYTSIOcr69UVQ==}
- resolution: {integrity: sha512-U92vJgBPkbw4Zfu/IiW2oTZLSL3Zpv+uI7My2eq8JxKgqraFdU8YUGicEJCEgSbeaG+QDFqIcwwfMTOEelPxuA==}
-
resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}
@@ -9745,7 +9745,7 @@ snapshots:
mdast-util-definitions: 6.0.0
rehype-raw: 7.0.0
rehype-stringify: 10.0.1
- remark-gfm: 4.0.0
+ remark-gfm: 4.0.1
remark-parse: 11.0.0
remark-rehype: 11.1.1
remark-smartypants: 3.0.2
@@ -9796,7 +9796,7 @@ snapshots:
hast-util-to-html: 9.0.4
kleur: 4.1.5
rehype-raw: 7.0.0
- remark-gfm: 4.0.0
+ remark-gfm: 4.0.1
remark-smartypants: 3.0.2
source-map: 0.7.4
unist-util-visit: 5.0.0
@@ -13557,9 +13557,9 @@ snapshots:
dependencies:
'@babel/types': 7.26.3
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
- bun-types: 1.2.12
+ bun-types: 1.2.13
'@types/[email protected]': {}
@@ -14374,7 +14374,7 @@ snapshots:
dependencies:
'@types/node': 22.10.2
@@ -14857,7 +14857,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -14867,10 +14867,10 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.0
better-sqlite3: 11.4.0
- bun-types: 1.2.12
+ bun-types: 1.2.13
react: 19.1.0
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -14880,12 +14880,12 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.0
better-sqlite3: 11.7.0
- bun-types: 1.2.12
+ bun-types: 1.2.13
react: 19.1.0
dependencies:
zod: 3.23.8
@@ -18140,17 +18140,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@types/mdast': 4.0.4
- mdast-util-gfm: 3.0.0
- micromark-extension-gfm: 3.0.0
- remark-parse: 11.0.0
- remark-stringify: 11.0.0
- unified: 11.0.5
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@types/mdast': 4.0.4