Skip to content

[Feature Request]: Create an anchor compontentΒ #1909

@reakaleek

Description

@reakaleek

Prerequisites

  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have tested using the latest version of docs-builder

What problem are you trying to solve?

We want to share links to specific elements.

Proposed Solution

Create an MyST anchor compontent that can be used like

::::{anchor} custom-id

:::{dropdown} Dropdown Title
Dropdown content
:::

::::

This will result in wrapping the the final html with a div wrapper with the given id="custom-id"

You also need to make sure that the anchor exists in the model and is added to the link index.

So that you can use the link syntax to link it.

Examples and Research

No response

Alternative Solutions

No response

Additional Context

No response

How important is this feature to you?

Nice to have

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions