neocotic / europa

Library for converting HTML into valid Markdown
MIT License
159 stars 24 forks source link

Support text attributes? #51

Closed toricls closed 9 years ago

toricls commented 9 years ago

Is there any plan to support text attributes like bold, italic, strikethrough?

neocotic commented 9 years ago

Can you elaborate more on what you mean by "text attributes"? Perhaps providing an example of input and the output you'd expect/desire?

toricls commented 9 years ago

Here is an example below from Wikipedia which linked in README.md

Input:

Text attributes <em>italic</em>, <strong>bold</strong>,
<code>monospace</code>, <s>strikethrough</s>.

Output:

Text attributes *italic*, **bold**,
 `monospace`, ~~strikethrough~~ .
neocotic commented 9 years ago

And which of these are you having a problem with? The only one that's not already support is strikethrough (i.e. <s>) since that is not supported by pure Markdown as far as I'm aware.

What are you seeing happen when you attempt to convert the input you've provided with html.md?

toricls commented 9 years ago

The only one that's not already support is strikethrough (i.e. <s>)

My test data was not correct, and yes, it's exactly working properly without <s> which I expected to be converted. Could you share the documentation page or an url you mentioned as pure Markdown?

neocotic commented 9 years ago

Good stuff. I'll close this issue then.

Here's the official homepage of the original Markdown language:

http://daringfireball.net/projects/markdown/

toricls commented 9 years ago

Thanks :)