MacDownApp / MacDownApp/macdown

Anchors for headings

Open
#255 28 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I noticed that the generated anchors on headings are toc_xx.
Is it possible to implement something more relevant like GitHub? This is especially useful if you want to provide inner links or insert a custom table of content.

Instead of:

``` html

Welcome to my project


```

Generate this:

``` html

Welcome to my project


```

Thanks for the good work :+1: :beers: !

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

No files or tests are named in the issue. Start by locating the Markdown-to-HTML path that generates heading ids, then compare its output with the requested GitHub-style slug for headings; done means generated anchors use relevant heading text and the related behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
content
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.