The Wayback Machine - https://web.archive.org/web/20201031201717/https://github.com/BoostIO/Boostnote/issues/3657
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

Parse HTML pasted text to Markdown #3657

Open
rwperrott opened this issue Oct 24, 2020 · 0 comments
Open

Parse HTML pasted text to Markdown #3657

rwperrott opened this issue Oct 24, 2020 · 0 comments

Comments

@rwperrott
Copy link

@rwperrott rwperrott commented Oct 24, 2020

.. 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

  • Boostnote version: 0.16.1
  • OS version and name: Windows 10 Pro 64-bit, October 2020 service pack.
@Flexo013 Flexo013 changed the title Pasted HTML <a>, <code>, <i>, <u>, and <b> text can lack word separator spaces, so become crowded. Parse HTML pasted text to Markdown Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.