Skip to content

Table of Contents should respect "raw" HTML tags #353

@linkdotnet

Description

@linkdotnet

Currently, only markdown is parsed, but <h2...> and friends should also work.

While working on this feature, there are some major complexity points here: mainly:

Do we want to allow a mixed mode? So there are # in the code and <h1> and friends.

Markdig doesn't support parsing HTML elements out of the box - therefore, we might need to use something like Anglesharp to parse the HTML itself.

For the time being, keeping the HTML Toc (if there is one) might be the easier solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions