Closed vskjefst closed 5 years ago
Ran into the same problem. Changed the following to fix it: lib/html-to-markdown/HTML-To-Markdown.php
private function convert_children( $node ) {
// Don't convert HTML code inside <code> blocks to Markdown - that should stay as HTML
if ( self::is_child_of( 'code', $node ) ) {
->
...
if ( self::is_child_of( 'code', $node ) || self::is_child_of( 'div', $node ) ) {
I've tested this use case and I think it's safe to close this issue now.
I am migrating the blog from WordPress to Ghost and the posts were not converted to Markdown at all. Do I need to do anything extra the get them converted to Markdown?
Example:
is converted to
Expected behavior is that the HTML inside the div-element isn't converted, since Markdown inside of HTML-tags isn't parsed, ref. "Inline HTML"