-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
π documentationImprovements or additions to documentationImprovements or additions to documentationπ study
Milestone
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
Use a remark/rehype plugin to add a [[comp]] placeholder string instead of inline svg to mark paragraph as a component type definition in headings.
Maybe we could use that to display the svg in TOC also.
The plugin will replace [[comp]] by <svg class="hl-small-icon me-scaled-2xsmall mb-xsmall" width="1rem" height="1rem" aria-hidden="true"><use xlink:href="/[getBrand]/docs/0.5/assets/img/ouds-web-sprite.svg#component-atom" />
Motivation and context
As we will use this svg in headings many times it make sense to automate it and colocalise where the svg is defined.
Metadata
Metadata
Assignees
Labels
π documentationImprovements or additions to documentationImprovements or additions to documentationπ study