arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

Anchor link ids are not generated? #63

Open androidand opened 8 years ago

androidand commented 8 years ago

I really want to use anchor links to headlines. Creating a link works with

[A working anchor link](#gohere)

But I can not find any way of generating the id/target. It should look like this after being parsed by strapdown: <a name="gohere"></a>

I am amazed that there are no examples of anchor links/bookmarks, I did find examples of links.

zTrix commented 8 years ago

I have solved this in my derived project of strapdown.

https://github.com/chaitin/strapdown-zeta

Example: http://strapdown.ztx.io/#h1.0.1_features

androidand commented 8 years ago

That's great, you saved me some trouble, thank you!

Skickat från min iPhone

7 nov. 2015 kl. 17:40 skrev Wenlei Zhu notifications@github.com:

I have solved this in my derived project of strapdown.

https://github.com/chaitin/strapdown-zeta

Example: http://strapdown.ztx.io/#h1.0.1_features

— Reply to this email directly or view it on GitHub.

roddersg commented 6 years ago

Strapdown-zeta uses a compiled code, which I do not like placing on my server. a modified strapdownjs code (0.74) which I tried to build but was un-successful. The themes etc do not work properly unless you grab them from his site. (It should, but must be me)

Is there any way I can get this done with strapdown.js only?

joedf commented 6 years ago

you could use my plugin... light weight and works directly on top of strapdown. https://github.com/joedf/strapdown-topbar

roddersg commented 6 years ago

@joedf - Thank you, very very much Your plugin has made my day. I was struggling with strapdownjs-zeta but yours is a much cleaner design. You have also solved my problem with the favicon.ico as well. It is certainly a very neat way of doing things.

Thanks again!

joedf commented 6 years ago

@roddersg my pleasure! 😄