@draftbase/renderer 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/styles.css +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -233,6 +233,8 @@ function EntryLink({ id, children }: { id: string; children: React.ReactNode })
|
|
|
233
233
|
- Extra classes: `<MDXContent source={...} className="prose" />`.
|
|
234
234
|
- Custom wrapper/error element (e.g. React Native's `View`/`Text`): `<MDXContent source={...} wrapperTag={View} errorTag={Text} />`.
|
|
235
235
|
|
|
236
|
+
If your site has a sticky header, set the anchor offset once on your own page — `html { scroll-padding-top: 5rem }` — so heading links don't land underneath it. The renderer deliberately ships no offset of its own, since `scroll-padding-top` and `scroll-margin-top` sum when both are set.
|
|
237
|
+
|
|
236
238
|
## Using with Claude Code / AI coding agents
|
|
237
239
|
|
|
238
240
|
If you're an agent wiring this into a project, follow this checklist:
|
package/dist/styles.css
CHANGED