div-Tags not handled
div tags not handled by the converter.
Expected behavior
´ divtags should be silently removed (without producing output), except when they do not contain another block element. in that case, they should behave as
` tags do
Actual Behaviour
When the HTML source contains <div> tags, the Output still contains them.
Steps to reproduce the Problem
Convert Input <div>Some text</div>
@eFloh - thanks for contributing.
According to the Markdown spec div tags are supported as is with no conversion. So the actual behaviour is correct by this rationale. In fact it should not even support Markdown elements inside HTML block level elements. I have a bug to fix this #35
It would be great if this could be added as an option to the Convert method, even if it is technically in violation of the spec, as I think the common case for using the library is to convert HTML which was written without the Markdown spec in mind.
It would be great if this could be added as an option to the
Convertmethod, even if it is technically in violation of the spec, as I think the common case for using the library is to convert HTML which was written without the Markdown spec in mind.
Agreed, +1 !