Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Fix track-events.mdx formatting

Edward Cui4baf4ef3f06e
diff --git a/docs/src/content/track-events.mdx b/docs/src/content/track-events.mdx
index 40d354ecd..c3cc5d186 100644
--- a/docs/src/content/track-events.mdx
+++ b/docs/src/content/track-events.mdx
@@ -42,14 +42,14 @@ Manually tracks outbound link clicks. Useful for programmatic navigation or cust
```javascript
// Track a programmatic navigation to an external site
-window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank"); */}
-```
+window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank");
+``` */}
## Typescript Support
Put this as file `rybbit.d.ts` anywhere in your project to avoid having to do `(window as any).rybbit.event()` everywhere.
-```ts
+```typescript
interface Rybbit {
/**
* Tracks a page view
@@ -71,3 +71,4 @@ declare global {
}
export {};
+```