MacDownApp / MacDownApp/macdown
Anchors for headings
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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