Show HN: Markdown Cleaner – clean AI-generated Markdown before pasting(tools.encona.com)
tools.encona.com
Show HN: Markdown Cleaner – clean AI-generated Markdown before pasting
https://tools.encona.com/mdclean
3 comments
On Linux you can use:
xsel --clipboard | sed -E 's/##/#/g' | sed -E 's/^([[:space:]]*)-([[:space:]])/\1*\2/g' | xsel --clipboard --inputSounds dope I made something similar recently https://x.com/petesena/status/1910556481100853515?s=46&t=LIg...
If you're on MacOS, you can deal with the headings and bullets using a command line instead:
pbpaste | sed -E 's/##/#/g' | sed -E 's/^([[:space:]]*)-([[:space:]])/\1*\2/g' | pbcopy
- Headings are often too deep: the top level headings use heading 2.
- Links are often long and ugly, which is annoying when they appear within the body of the document.
- Bulleted lists often use hyphens instead of asterisks (*) which means you get hyphens as bullets instead of circles/dots.