Add button to expand all links?
robmarkcole opened this issue · comments
Robin Cole commented
It would be nice to hit a button and expand all links, so the page could be searched without needing to dive into the raw markdown
Samuel Bancroft commented
I don't think you can have javascript buttons on Github markdowns, but perhaps a bookmarklet would be a good solution?
Something like this would work, as long as the elements to be expanded can be filtered to the details elements in the markdown.
javascript:(function() {
var detailsElements = document.getElementsByTagName('details');
for (var i = 0; i < detailsElements.length; i++) {
if (!detailsElements[i].hasAttribute('open')) {
detailsElements[i].setAttribute('open', '');
}
}
})();
Robin Cole commented
Could you make a fork and try it out?
Robin Cole commented
Another option to reformat is to return all material out of the drop downs.
Format would be:
- Introductions and images
- Link to later section where links live
Robin Cole commented
Just removed the drop downs