BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.08k stars 1.47k forks source link

Parse HTML pasted text to Markdown #3657

Closed rwperrott closed 2 years ago

rwperrott commented 3 years ago

.. and easily recognised equivalents, like in css.

Current behavior

When I paste html, like:

HTML:

<li>Download <a href="./maven.xml">this file</a>, and place it in <code>$USER_HOME/.IntelliJIdea/config/templates</code</li>

It gets pasted as:

MD:

1.  Download[this file](https://maven.apache.org/developers/maven.xml), and place it in`$USER_HOME/.IntelliJIdea/config/templates`
  1. Downloadthis file, and place it in$USER_HOME/.IntelliJIdea/config/templates

This is obviously harder to read than the original HTML.

Expected behavior

Like this:

MD:

1.  Download [this file](https://maven.apache.org/developers/maven.xml), and place it in `$USER_HOME/.IntelliJIdea/config/templates`
  1. Download this file, and place it in $USER_HOME/.IntelliJIdea/config/templates

As with normal word spacing, a space prefix is not necessary at the start of a line, and a space suffix is not necessary before delimiter characters.

Steps to reproduce

I found this issue when pasting Mojo API Specification and numerous other pages; which makes it a pain for pages with lots of code, links, and/or font formatting.

Environment

rwperrott commented 2 years ago

I switched to Joplin because I think it's a lot better, so don't mind if this is closed.

rwperrott commented 2 years ago

Closed because I can't hide it in my open issues list.