How to open all hidden text (triangles) in markdown?

Sometimes, but only sometimes we are having text in a markdown that looks like this:

And instead of going and opening each one separately, we can do the following in a Chrome browser:

  • F12
  • Open the console for writing
  • Write the magic words:

document.querySelectorAll(‘details’).forEach(e => e.setAttribute(‘open’, ‘true’));

🙂