leanprover / LeanInk

LeanInk is a command line helper tool for Alectryon which aims to ease the integration of Lean 4.
Apache License 2.0
60 stars 16 forks source link

We need to get back the "Copy to clipboard" button on Lean code snippets #35

Open lovettchris opened 1 year ago

lovettchris commented 1 year ago

Description

Copy/paste the output of Alectryon on lean code snippets produces a big mess in your VS code text editor.

Detailed behaviour

Go to https://leanprover.github.io/lean4/doc/monads/functors.lean.html and select the first lean snippet for List.map and paste it into VS code and you will get this:

#eval
["1", "2", "3"]

List.map (λ
x =>
toString
x) [
1,
2,
3] -- ["1", "2", "3"]