You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm displaying some Markdown files from a collection on a page. That page already has an <h1> tag. To avoid having multiple h1 tags, I would need to include a plugin like remark-heading-shift. The issue is, that plugin would be included for every Markdown use, including Markdown pages.
Goals
Provide a way to create different plugin presets
Provide a way to use those presets in the <Content /> component
Alternatively, create a way for Astro to automagically fix headings on a page
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Different presets of Markdown plugins
Background & Motivation
I'm displaying some Markdown files from a collection on a page. That page already has an
<h1>
tag. To avoid having multipleh1
tags, I would need to include a plugin likeremark-heading-shift
. The issue is, that plugin would be included for every Markdown use, including Markdown pages.Goals
<Content />
componentExample
Beta Was this translation helpful? Give feedback.
All reactions