Skip to content

Add prefix support #60

Closed
Closed
@Kikobeats

Description

@Kikobeats

Problem

I'm generating a toc using mdast-util-toc but, before this, I sanetize my content using rehype-sanitize and hast-util-sanitize/lib/github.

This GitHub preset do a set of things related to sanitizing the content; one of them is to prefix urls by default.

Based on this premise, If I sanitize my content and then I tried to generate the Table of Content, the links of the table are not properly linked since they are not prefixed.

Subject of the feature

Just adding the ability to prefix the urls to have the same link src than the content should be enough

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions