Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maxitg opened this issue Jul 23, 2021 · 4 comments
Open

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

maxitg opened this issue Jul 23, 2021 · 4 comments
Labels
documentation Adds or changes documentation for existing functionality

Comments

@maxitg
Copy link
Owner

maxitg commented Jul 23, 2021

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 maxitg added the documentation Adds or changes documentation for existing functionality label Jul 23, 2021
@daneelsan
Copy link
Collaborator

daneelsan commented Jul 23, 2021

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

image

@maxitg
Copy link
Owner Author

maxitg commented Jul 23, 2021

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

@daneelsan
Copy link
Collaborator

I meant generating this:

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

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

@maxitg
Copy link
Owner Author

maxitg commented Jul 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Adds or changes documentation for existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants