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.

Incorrect TOC for reference link

See original GitHub issue

What is the problem?

### Via [remark-cli][]

[remark-cli]: https://github.com/remarkjs/remark/tree/master/packages/remark-cli
<!-- output -->
- [Via [remark-cli][]](#via-remark-cli)
<!-- expected -->
- [Via remark-cli](#via-remark-cli)

How can I reproduce it?

Is there any error message in the console?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
yzhang-ghcommented, Apr 14, 2020

It should be fixed in the dev build.

0reactions
BeeeWallcommented, Apr 14, 2020

Thanks for fixing it!

One small problem still: the regex does NOT match shortcut-style links ([this] vs [this][0]), so those are left.

It looks like changing the regex to make the second set of brackets optional fixes that (\[([^\]]*)\](?:\[[^\]]*\])*). I’ve gone ahead and done this in #655

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error! Hyperlink reference not found. in Word TOC
Hyperlink reference not found. in Word TOC. When I update an entire Table of Contents, all deleted items start with inserted text "Error!...
Read more >
Incorrect Link in ToC to Bibliography Heading - LaTeX.org
This way of bringing the bibliography into the ToC doesn't produce an anchor for hyperref. Hence it generates a false page link. You...
Read more >
Incorrect ToC/Index cross-references when resetting memoir ...
Here, cross-references in the ToC and in the Index all work correctly. But I want to reset Chapter numbers back to "1" in...
Read more >
[How-To] FIX PAGE NUMBERS in a Table of ... - YouTube
If you find yourself wondering how to fix the incorrect page numbers in a ... The cost to you is the same whether...
Read more >
CDM 10.2.2 - Page Number on TOC is Incorrect When ... - IBM
Problem. When generating the document in CDM 10.2. · Symptom. TOC Variables in TOC Object do not match actual page number(s). · Cause....
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