Closed jorgeartware closed 11 years ago
I have tried, the github parser will thow http.client.BadStatusLine
:
Traceback (most recent call last):
File "MarkdownPreview in <....>\Installed Packages\Markdown Preview.sublime-package", line 254, in convert_markdown
File "X/urllib/request.py", line 160, in urlopen
File "X/urllib/request.py", line 473, in open
File "X/urllib/request.py", line 491, in _open
File "X/urllib/request.py", line 451, in _call_chain
File "X/urllib/request.py", line 1287, in https_open
File "X/urllib/request.py", line 1257, in do_open
File "X/http/client.py", line 1131, in getresponse
File "X/http/client.py", line 354, in begin
File "X/http/client.py", line 324, in _read_status
http.client.BadStatusLine: ''
And the markdown2 ("default") parser will not render correctly, have some thing like md5-5515ea8662861c0b505b35f9e954f312
in the code blocks, just as #76.
Only the newly added python-makdown parser works fine and quickly. Just config your parser: "parser":"markdown"
.
@revolunet I have found 2 things about this:
The bug reproduce steps:
http.client.BadStatusLine
(seems the server returns nothing)Would help check what's wrong with the ST3 code for using github API?
ok i'll handle this one :)
BTW, I have asked for help at stackoverflow.com here but currently no answer yet.
for some reason the GFM conversion make ST2 freeze, even with a single like markdown.
Here's the line that cause the issue : json.dumps
. https://github.com/revolunet/sublimetext-markdown-preview/blob/master/MarkdownPreview.py#L291
The data
look correct though
ok for some reason its workin again :)
cannot reproduce, works fine on ST2/3
Can't attach images because I had to kill the process using the system monitor. But I tested it more than a few times and I had to roll back to regular markdown syntax highlight in order to be able to read that file.
check it out for yourself: https://github.com/hakimel/reveal.js