diff --git a/vite.config.ts b/vite.config.ts index 9dfd437..aea1b13 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -118,6 +118,9 @@ function syncTips(): Plugin { /\(\.\/tip_template\.md\)/g, '(https://github.com/tempoxyz/tempo/blob/main/tips/tip_template.md)', ) + // Rewrite inter-TIP links from ./tip-NNNN.md to ./tip-NNNN (synced as .mdx, + // Vocs resolves extensionless paths). + content = content.replace(/\(\.\/tip-(\d+)\.md\)/g, '(./tip-$1)') // Escape angle brackets outside of code blocks/inline code so MDX doesn't // treat them as JSX (e.g. `Mapping` in prose). content = escapeAngleBrackets(content)