gh-md
gh-md copied to clipboard
gh-md cannot render table on Windows
Run gh-md-render-region on markdown table like this:
Key Binding | Description
----------------------|------------------------------------------------------------
<kbd>SPC m h h</kbd> | cider doc
<kbd>SPC m h g</kbd> | cider grimoire
<kbd>SPC m h j</kbd> | cider javadoc
resulted in a blank buffer.
That is weird, can you set (setq url-debug t), call gh-md-render-region and paste contents of *URL-DEBUG* buffer?
Here is the content of *URL-DEBUG*:
http -> Contacting host: api.github.com:443
http -> Marking connection as busy: api.github.com:443 #<process api.github.com>
http -> Request is:
POST /markdown HTTP/1.1
MIME-Version: 1.0
Connection: keep-alive
Extension: Security/Digest Security/SSL
Host: api.github.com
Accept-encoding: gzip
Accept: */*
User-Agent: URL/Emacs
Content-length: 223
{"text":"Key Binding | Description\n--------------|------------------------------------------------------------\n`<SPC> m a ?` | looks up documentation using [`ansible-doc`][ansible-doc]","mode":"markdown","context":null}
http -> Calling after change function `url-http-wait-for-headers-change-function' for `#<process api.github.com>'
http -> url-http-wait-for-headers-change-function ( *http api.github.com:443*-617715)
http -> Saw end of headers... ( *http api.github.com:443*-617715)
http -> url-http-parse-response called in ( *http api.github.com:443*-617715)
http -> Saw chunked encoding.
http -> Calling initial chunked-encoding for extra data at end of headers
http -> Reading chunk 0 (820 997 177)
http -> Saw start of chunk 1 (length=165, start=821
http -> Reading chunk 1 (820 997 177)
http -> Got to the end of chunk #1!
http -> Saw start of chunk 2 (length=0, start=986
http -> Saw end of stream chunk!
http -> Removing terminator of last chunk
http -> Marking connection as free: api.github.com:443 #<process api.github.com>
http -> url-http-parse-headers called in ( *http api.github.com:443*-617715)
http -> url-http-parse-response called in ( *http api.github.com:443*-617715)
http -> Parsed HTTP headers: class=2 status=200
http -> Finished parsing HTTP headers: t
http -> Marking connection as free: api.github.com:443 #<process api.github.com>
http -> Activating callback in buffer ( *http api.github.com:443*-617715): #[128 "rpq\210eb\210\304\305\306\307#\210`Td{)\310\311\"\312\301\"r\302q\210\307\313 \210\211c\210\300\203/
I was suspecting an incorrectly call to the github api; but doesn't seems so (returns 200 OK).
Only fails with tables? if so, probably is a problem with shr.el.