Obtener el "raw" de la selección del usuario (sin Markdown)

Yeah this is VERY tough, probably difficulty level 20.

When you get stuff from the selection we are getting straight HTML

<ul>
<li>some text</li> 
</ul>

Nothing here about * vs +

To add complication if you just select a couple of items from a long list you get:

<li>some text</li>
<li>some other text</li>

This does not even give you ul vs ol

What we do for quoting is go

HTML → Markdown

This is a lossy process and also bug prone process. We have a bunch of workarounds to clean up HTML prior to conversion.

Changing to:

HTML → Original Markdown, would require a reverse map of HTML row/column → markdown. This is not supported at the moment in markdown.it.

1 me gusta