rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 263 forks source link

Internal links #76

Open mebibou opened 8 years ago

mebibou commented 8 years ago

I might be doing something wrong, but I can't make this work:

Title
====
Section
--------

### Header

This is the header description

### Footer

This contains a link to [header](#header)

This does not generate a proper link in Footer to go to the Header section (the [header](#header) part), it should render <a href="#title-section-header">header</a> but instead renders <a href="#header">header</a>

FYI, the markdown works on github, and putting [header](#title-section-header) instead will break the markdown

plonknimbuzz commented 6 years ago

is this fixed? i have same problem too.

`#TITLE

HEADER

`

if i use #header on github it will scroll correctly. But in my web this will failed. because the right link is #title-header (and the opposite)