xoofx / xoofx/markdig

Prefix auto-generated identifiers

Open
#559 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement PR Welcome!
Dominant language
C#
Stars
5.3k
Forks
510
Avg merge
8d 5h
Merged PRs (30d)
5

Description

Is it possible to add a prefix to the auto-generated identifiers? If not, then are there any plans for it to be supported in the future?

Usecase: We are using markdig in only a part of the page or multiple different parts of the same page. Planning to enable AutoIdentifiers for headers but we need to be able to specify our own prefix so as not to conflict with existing identifiers on a page.

Will appreciate any suggestions. Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Markdig's AutoIdentifiers implementation and any existing tests for generated header identifiers. Determine where a caller-provided prefix could be specified and define completion around prefixes being applied without conflicts when multiple Markdig-rendered sections share a page.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, markdown
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.