Export does not seem to handle code blocks #7

pgr0ss opened this Issue Sep 15, 2016 · 1 comment


None yet

1 participant

pgr0ss commented Sep 15, 2016

My current wordpress blog uses code blocks that look like:

<pre lang="ruby">
def foo

After exporting, this just becomes:

 def foo end

I also tried blocks like:

def foo

This one becomes:

def foo<br></br>
end<br></br>`` `` ``

I did notice that inline code blocks work, like <code>foo</code>.

Is there a way to properly export my blog posts with code snippets?

On a related note, this plugin seems to use version 2.1.1 of https://github.com/thephpleague/html-to-markdown for converting HTML to Markdown. But that version is several years old and the current version 4.2.1. Perhaps a newer version of the converter might help?

pgr0ss commented Sep 15, 2016

Btw, my version of wordpress is 3.8.2+dfsg-1ubuntu0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment