modmore / docs

The official documentation for modmore extras and services. Contributions welcome!
https://docs.modmore.com/
3 stars 29 forks source link

Copy Hash Links #10

Open jpdevries opened 7 years ago

jpdevries commented 7 years ago

Make it easy for people to copy links to sections of the documentation. Headers already have ids need to make them anchors to allow people to access them without viewing source.

https://medium.com/markuptips/sprinkle-some-hash-on-your-headings-ecd00bfd9811#.sug7hfj7z

jpdevries commented 7 years ago

To prevent screen readers from reading the headings as links

<h2 id="yolo"><span a11y-hidden>Yolo</span><a href="#yolo" aria-hidden>Yolo</a></h2>
Mark-H commented 7 years ago

I don't think daux lets us easily do this, but would be nice. Perhaps as a shown-on-hover/focus link/paragraph icon like github does it when it shows markdown in readmes?