maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
219 stars 44 forks source link

Remove In[]/Out[] from Markdown #665

Open maxitg opened 3 years ago

maxitg commented 3 years ago

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.

daneelsan commented 3 years ago

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

image

maxitg commented 3 years ago

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

daneelsan commented 3 years ago

I meant generating this:

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

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

maxitg commented 3 years ago

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