Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<B256, bool>` in prose).
content = escapeAngleBrackets(content)
Expand Down
Loading