Skip to content

Commit

Permalink
toc added
Browse files Browse the repository at this point in the history
this is the bookmarklet forked from 
https://gist.github.com/sillero/ba07348369b0d2354245
added with clipboard

```
javascript:!function(e){var r=["###Table of contents"];[].map.call(e.querySelectorAll("h1, h2, h3, h4, 

h5, h6"),function(e){var t=[Array(parseInt(e.tagName[1])).join("    "),"- [",e.innerText,"]

(",e.querySelector("a").getAttribute("href"),")"];r.push(t.join(""))}), toc2=r.join("\n"); 

navigator.clipboard.writeText(toc2).then(()=> { alert(toc2); });}(document.querySelector(".markdown-

body")) ; 
```
  • Loading branch information
pflegende committed Mar 27, 2022
1 parent 7d4bf72 commit 391a923
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
for **TOC** click on hamburger on top left hand side
###Table of contents
- [AgAtAb](#agatab)
- [Why?](#why)
- [elderly need a solution](#elderly-need-a-solution)
- [THIS THING:](#this-thing)
- [What?](#what)
- [papers](#papers)
- [epilogue](#epilogue)

for **TOC** click (in gh only) on hamburger on top left hand side

# AgAtAb
hitchhiker travels now with really THINK tanking books ... let's go.
Expand Down

0 comments on commit 391a923

Please sign in to comment.