NullVoxPopuli / limber

Glimdown playground for documentation, demos, etc

Home Page:https://limber.glimdown.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add various copy buttons to code snippets

NullVoxPopuli opened this issue · comments

Kinda like what GitHub implemented, except:

  • copy code block as text implemented
  • copy code block as image
  • copy rendered document as image

what's tricky about this is that the content is all dynamic, so we can't statically render copy buttons with a menu or popover.

  • this could be rendered elsewhere in the document, and hidden
  • when a pre tag or rendered document is hovered, we could show the elsewhere'd content and change the position to be near the hovered element