We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907b8cc commit 5647ceaCopy full SHA for 5647cea
src/waku/internal/middleware/md-router.ts
@@ -103,7 +103,10 @@ export function middleware(): MiddlewareHandler {
103
)
104
text = result?.content ?? null
105
} else {
106
- text = await fetchMarkdown(url, `/assets/md${url.pathname}`)
+ const assetPath = url.pathname.endsWith('.md')
107
+ ? `/assets/md${url.pathname}`
108
+ : `/assets/md${url.pathname}.md`
109
+ text = await fetchMarkdown(url, assetPath)
110
}
111
if (!text) return next()
112
0 commit comments