card-web icon indicating copy to clipboard operation
card-web copied to clipboard

Clean up basic markdown on paste

Open jkomoros opened this issue 2 years ago • 4 comments

A lot of times rough stuff pasted in has markdown. It should be converted to HTML by default

jkomoros avatar Jul 30 '22 23:07 jkomoros

Also all caps should be bolded (... except if an acryonym? Maybe have denylist of acrynonyms / all-caps things that shoudln't be bolded)

jkomoros avatar Jul 30 '22 23:07 jkomoros

This might be as simple as, when we detect a paste on a content editable item (if it's a field that supports html) then just run it through snarkdown every time.

I THINK that most markdown formatting is extremely rare to happen 'accidentally' so this should be mostly safe

jkomoros avatar Jul 31 '22 12:07 jkomoros

Maybe have a keyboard shortcut that can also be run to extract markdown formatting? And run it automatically on paste?

jkomoros avatar Aug 20 '22 22:08 jkomoros

And also replace uppercase words with bold. We could process the whole corpus and look for words that at least two characters that are seen as uppercase in at least two cards to know that those should be skipped, e.g. API. (Althoguh I bet there are a lot of working-notes cards that erroneously have AND and OR still capitalized)

jkomoros avatar Sep 03 '22 21:09 jkomoros