clipboard2markdown icon indicating copy to clipboard operation
clipboard2markdown copied to clipboard

Does not support bold texts

Open jp06 opened this issue 6 years ago • 2 comments

Sometimes, the text I copy is not being wrapped by '**' upon paste but it always work with headers and italicized texts. For example, try to copy-paste from the page in the zip file: Cultivation Chat Group - Chapter 445 - Webnovel - Your Fictional Stories Hub_files.zip

jp06 avatar Jun 29 '18 04:06 jp06

Hi, it would be interesting to see what HTML gets into the page before it's run through the markdown converter. I'll take a look if I get a chance. I'm happy to accept and PRs if you have a fix as well

euangoddard avatar Jul 02 '18 08:07 euangoddard

In my case, it happens if the text is copied from OneNote. The OneNote to Markdown Converter can handle this well though. You can see how it works.

Text

  • Cognitive workload: the readers read the paper because they think it can solve their problems, not the author's problem.

HTML code

<ul type=disc style='margin-left:.375in;direction:ltr;unicode-bidi:embed;margin-top:0in;margin-bottom:0in'>
 <li style='margin-top:0;margin-bottom:0;vertical-align:middle'><span style='font-family:Calibri;font-size:11.0pt'>Cognitive workload: the readers read the paper because they think it can solve </span><span style='font-weight:bold;font-style:italic;font-family:Calibri;font-size: 11.0pt'>their</span><span style='font-family:Calibri;font-size:11.0pt'> problems, not the author's problem. </span></li>
</ul>

ooker777 avatar Aug 14 '18 10:08 ooker777