{"action":"opened","issue":{"url":"https://api.github.com/repos/TryGhost/wp-ghost-exporter/issues/7","repository_url":"https://api.github.com/repos/TryGhost/wp-ghost-exporter","labels_url":"https://api.github.com/repos/TryGhost/wp-ghost-exporter/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/wp-ghost-exporter/issues/7/comments","events_url":"https://api.github.com/repos/TryGhost/wp-ghost-exporter/issues/7/events","html_url":"https://github.com/TryGhost/wp-ghost-exporter/issues/7","id":177083483,"number":7,"title":"Export does not seem to handle code blocks","user":{"login":"pgr0ss","id":12998,"avatar_url":"https://avatars.githubusercontent.com/u/12998?v=3","gravatar_id":"","url":"https://api.github.com/users/pgr0ss","html_url":"https://github.com/pgr0ss","followers_url":"https://api.github.com/users/pgr0ss/followers","following_url":"https://api.github.com/users/pgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/pgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/pgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgr0ss/subscriptions","organizations_url":"https://api.github.com/users/pgr0ss/orgs","repos_url":"https://api.github.com/users/pgr0ss/repos","events_url":"https://api.github.com/users/pgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/pgr0ss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-15T04:06:52Z","updated_at":"2016-09-15T04:06:52Z","closed_at":null,"body":"My current wordpress blog uses code blocks that look like:\r\n\r\n```\r\n<pre lang=\"ruby\">\r\ndef foo\r\nend\r\n</pre>\r\n```\r\n\r\nAfter exporting, this just becomes:\r\n\r\n```\r\n def foo end\r\n```\r\n\r\nI also tried blocks like:\r\n```\r\n<code>\r\ndef foo\r\nend\r\n</code>\r\n```\r\n\r\nThis one becomes:\r\n\r\n    ```\r\n    <br></br>\r\n    def foo<br></br>\r\n    end<br></br>`` `` ``\r\n\r\nI did notice that inline code blocks work, like `<code>foo</code>`.\r\n\r\nIs there a way to properly export my blog posts with code snippets?\r\n\r\nOn 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?\r\n"}}
{"actor":{"display_login":"pgr0ss"}}