loading...
Cover image for Selfish Hacktoberfest 2019

Selfish Hacktoberfest 2019

michelc profile image Michel ・1 min read

My last tutorial contains a table of contents. But whatever Markdown I tried, the links never worked :(

So I needed to look under the hood and get my hands dirty...

One issue and one PR later, and everything is working like clockwork again.

Fix invalid anchored links due to "//" prefix. #4340

michelc avatar
michelc commented on Oct 09, 2019

What type of PR is this? (check all applicable)

  • [ ] Refactor
  • [ ] Feature
  • [x] Bug Fix
  • [ ] Documentation Update

Description

Fix invalid anchored links due to "//" prefix.

  • Updates app/lib/redcarpet/render/html_rouge.rb
  • If link starts with "#", keep link as it is, since it's an anchored link

Related Tickets & Documents

#4338

Added to documentation?

  • [ ] docs.dev.to
  • [ ] readme
  • [x] no documentation needed

And now, I have to wait (20 minutes) until the fix goes into production, then republish my post in order to rebuild the TOC correctly.

**Table of Contents**

1. [Create a new Node project](#crud1)
1. [Add modules to the Node project](#crud2)
1. [Create the Express application](#crud3)
1. [Add EJS views](#crud4)
1. [Use views in Express](#crud5)
1. [First steps with the SQlite3 module](#crud6)
1. [Modify an existing row](#crud7)
1. [Create a new row](#crud8)
1. [Delete a row](#crud9)
1. [Conclusion](#crud10)

Posted on by:

michelc profile

Michel

@michelc

French developper, from QB Compiler 2, Visual Basic and C# for work. Also like testing Ruby/Sinatra and JavaScript/Node.

Discussion

markdown guide
 

I had the same problem too, I ended up doing some dirty patch work:

1. <a href="#crud1">Create a new Node project</a>
.
.
.


### 1. Create a new Node project <a id="crud1"></a>
 

I did the same thing. But I wondered why it didn't work properly when according to the documentation and even the whole internet, no one was talking about this problem, like everything was okay.

And then it was Hacktoberfest ...