Skip to content

Commit 0f76e97

Browse files
committed
fix routes and work on route testing
1 parent ded51ac commit 0f76e97

File tree

9 files changed

+1022
-327
lines changed

9 files changed

+1022
-327
lines changed

app/routes/MdxRoute.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ let communityTableOfContents = async () => {
136136
let loader: ReactRouter.Loader.t<loaderData> = async ({request}) => {
137137
let {pathname} = WebAPI.URL.make(~url=request.url)
138138

139-
let mdx = await loadMdx(request, ~options={remarkPlugins: [Mdx.gfm]})
139+
let mdx = await loadMdx(request, ~options={remarkPlugins: Mdx.plugins})
140140

141141
if pathname->String.includes("blog") {
142142
let posts = blogPosts()

generate-route-types.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { init } from "react-router-mdx/server";
33

44
init({
55
paths: [
6-
"markdown-pages/blogposts",
6+
"markdown-pages/blog",
77
"markdown-pages/docs",
88
"markdown-pages/community",
99
"markdown-pages/syntax-lookup",

0 commit comments

Comments
 (0)