claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Automatically create a fragment for H* headers #13

Open claudioc opened 11 years ago

claudioc commented 11 years ago

This is what Gollum does automatically

claudioc commented 11 years ago

https://github.com/chjj/marked/pull/131

claudioc commented 11 years ago

https://github.com/chjj/marked/pull/129

almereyda commented 9 years ago

https://github.com/chjj/marked/pull/131 has been closed in favour of https://github.com/chjj/marked/pull/181. Especially its last comment is maybe interesting? https://github.com/chjj/marked/pull/181#issuecomment-58152360

I am willing to help out and try my bit, what is needed to do?

claudioc commented 9 years ago

Hi! The idea is quite simple: add a way to the H* so that they could be linked. Github itself is adding an "icon" just next to the H* elements that appears overing the H* text, which is an anchor

screenshot 2014-11-24 17 32 24

ilijastuden commented 8 years ago

Hello Claudio,

I see that headers do get their ID-s, but how do I link to them? Something like [[Page Name#anchor]] or [[my text|Page Name#anchor]] does not work.