russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.44k stars 599 forks source link

handling of dot `.` symbol in the headings #592

Closed hellt closed 4 years ago

hellt commented 4 years ago

Hi, I am using Hugo, which uses blackfriday. My issue is that blackfriday transforms the heading links that contain dots inside them not in the same way as github/gitlab do.

Example:

# 1 first heading
## 1.2 nested heading

Here the issue is that blackfriday will generate the href for the nested heading as 1-2-nested-heading whereas gitlab/github engines would have expected 12-nested-heading

Is there an option to make blackfriday to work like github/gitlab in that case?

hellt commented 4 years ago

found the right knob

plainIDAnchors = true