Skip to content

[OUDS] Improve component marker in headingsΒ #3226

@MaxLardenois

Description

@MaxLardenois

Prerequisites

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

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions