Page MenuHomePhabricator

Add a "Download" / view raw option to code blocks in Remarkup
Open, LowPublic

Description

See PHI1249. Currently, if someone embeds a code block in remarkup using ``` syntax, there's no way to select/download the raw text in a standalone way -- you have to select the whole thing and copy/paste it. This is fine, but adding a "view raw / download" option would be nice as a convenience.

The primary difficulty with this is that the data is just part of the raw block and doesn't have a PHID or anything, but the button could conceivably just use JS and POST the data back to an endpoint somewhere. Or remarkup blocks may get more formal identifiers later on, which could make this easier.