Skip to content

Commit

Permalink
Updated the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakjosp committed Dec 10, 2024
1 parent daa5969 commit 8ab6054
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions stories/Walkthroughs/Output/Output.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ file.
></script>
```
This script exposes the helper function `applyCodeblockDecorations` via the window object. You can use it to apply syntax highlighting.
```react
useEffect(() => {
window.neetoEditor?.applyCodeblockDecorations?.()
}, [])
```
#### Make headings navigable in NextJS websites
Add the following lines to the SSG/SSR pages. The pages need not be converted to client side rendering for this to work.
Expand All @@ -122,3 +129,10 @@ Add the following lines to the SSG/SSR pages. The pages need not be converted to
strategy="beforeInteractive"
/>
```
This script exposes the helper function `applyHeaderDecorations` via the window object. You can use it to make the headers navigable.
```react
useEffect(() => {
window.neetoEditor?.applyHeaderDecorations?.()
}, [])
```

0 comments on commit 8ab6054

Please sign in to comment.