rstacruz / flatdoc

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

anchors in flatdoc #21

Closed chrisbrowneanu closed 10 years ago

chrisbrowneanu commented 10 years ago

Loving Flatdoc. Hopefully someone can help.

I'm having trouble with anchors in Flatdoc - for example: http://ricostacruz.com/flatdoc/#javascript-hooks doesn't take you to #javascript-hooks (unless you're already on the page)

I'm guessing that it's because the anchor doesn't exist in the page when it's loaded, but it would be great if it could be picked up somehow once loaded.

rstacruz commented 10 years ago

Fixed, and will be released under 0.8.5 soon, thanks to @malthe.

chrisbrowneanu commented 10 years ago

That's great. Thanks - and hopefully others will find it super-useful too.

Wenzil commented 9 years ago

The fix works in Firefox but not in Chrome (tested with version 40.0.2214.111)

malthe commented 9 years ago

@Wenzil do you have an example you can link to where it doesn't work?

Wenzil commented 9 years ago

Weird, I had tried with the link from the original post as well as my own site but it all works without a hitch now. Maybe Chrome was being unresponsive on my end for some reason. Nice!

Edit: Just realized the link in the original post is outdated so that's why that didn't work. The correct link would be http://ricostacruz.com/flatdoc/#customizing-basic-javascript-hooks. I probably messed up my own link when I first tried on my site. Anyway all is good now!