question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

handling dot (.) in heading number scheme

See original GitHub issue

What is the problem?

If the heading has a dot separated number, the link to it is generated incorrectly.

How can I reproduce it?

Create a heading

# 1.1 test heading

Start typing a link in the Markdown body, the dialog with the internal links will suggest 11-test-heading, however, it should be 1-1-test-heading instead.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
helltcommented, May 20, 2020

thanks @yzhang-gh !

plainIDAnchors = true

worked

0reactions
yzhang-ghcommented, May 20, 2020

Thanks for the information. It looks like Hugo is using Goldmark now (the official docs), from where I have seen a default configuration autoHeadingIDType: github. There is also an option plainIDAnchors: true for blackFriday.

Can you please play around with those configurations and see whether it can be compatible with GitHub?

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 steps to creating a numbered heading style in Word
Beginning with Heading 2, add the scheme to the sublevel headings, as follows: Select 2 in the Level control. Choose a Number Style...
Read more >
Number your headings - Microsoft Support
You can apply a numbering scheme to the headings in your document by using multilevel-list templates and built-in heading styles in Word (Heading...
Read more >
Word 2016 Heading Numbering - YouTube
Numbered headings are challenging to format. But if they are correctly created, they can make formatting your documents much easier.
Read more >
2020-04-03 - Managing Bullets and Numbering Using Styles
Word - Managing Bullets and Numbering Using StylesGetting bullets, numbering, and numbered headings to work correctly and consistently in a ...
Read more >
Hierarchical Outline numbering for Microsoft Word Documents
Need help with word numbering format 1.1 1.2 1.3 ? ... outline numbered headings to make a table of contents, and how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found