SetReplace icon indicating copy to clipboard operation
SetReplace copied to clipboard

Remove In[]/Out[] from Markdown

Open maxitg opened this issue 4 years ago • 4 comments

The problem

Since Github now supports click-to-copy for code blocks, it became somewhat inconvenient that the input/output code blocks contain In[] := and Out[] = prefixes that should not be copied.

It might be better to remove them altogether. It will make it less clear where the inputs/outputs are, but it needs to be tested to see whether it's more important than click-to-copy ability.

Also, it might require regenerating pictures without the labels for consistency.

Alternative solutions

It would be ideal to have it copy the code without the prefixes while displaying prefixes nonetheless. But that's likely too difficult or not possible.

maxitg avatar Jul 23 '21 16:07 maxitg

So ideally it should work like the WFR documentation? I.e. only allow click-to-copy for the input

image

daneelsan avatar Jul 23 '21 16:07 daneelsan

@daneelsan, yes, but it won't be possible to do it on GitHub directly.

maxitg avatar Jul 23 '21 17:07 maxitg

I meant generating this:

(*In[] :=*) test[]
(*Out[] =*) "This is a test"

It would be great to modify what is/isn't copied....

daneelsan avatar Jul 23 '21 18:07 daneelsan

@daneelsan, yes, I think that's better than omitting them entirely. It will also allow us to keep images the same.

maxitg avatar Jul 23 '21 18:07 maxitg