Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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