{"action":"created","issue":{"url":"https://api.github.com/repos/mitmproxy/pdoc/issues/119","repository_url":"https://api.github.com/repos/mitmproxy/pdoc","labels_url":"https://api.github.com/repos/mitmproxy/pdoc/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/mitmproxy/pdoc/issues/119/comments","events_url":"https://api.github.com/repos/mitmproxy/pdoc/issues/119/events","html_url":"https://github.com/mitmproxy/pdoc/pull/119","id":193558856,"node_id":"MDExOlB1bGxSZXF1ZXN0OTY1NzE5NjQ=","number":119,"title":"Update markdown dependancy by using markdown2","user":{"login":"realitix","id":6367936,"node_id":"MDQ6VXNlcjYzNjc5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/6367936?v=4","gravatar_id":"","url":"https://api.github.com/users/realitix","html_url":"https://github.com/realitix","followers_url":"https://api.github.com/users/realitix/followers","following_url":"https://api.github.com/users/realitix/following{/other_user}","gists_url":"https://api.github.com/users/realitix/gists{/gist_id}","starred_url":"https://api.github.com/users/realitix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realitix/subscriptions","organizations_url":"https://api.github.com/users/realitix/orgs","repos_url":"https://api.github.com/users/realitix/repos","events_url":"https://api.github.com/users/realitix/events{/privacy}","received_events_url":"https://api.github.com/users/realitix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-05T17:21:23Z","updated_at":"2018-09-07T11:08:26Z","closed_at":"2018-09-07T11:05:30Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/mitmproxy/pdoc/pulls/119","html_url":"https://github.com/mitmproxy/pdoc/pull/119","diff_url":"https://github.com/mitmproxy/pdoc/pull/119.diff","patch_url":"https://github.com/mitmproxy/pdoc/pull/119.patch"},"body":"Currently, markdown module is used to render markdown to html.\r\nIf you want to add an exemple in your docsting, surrounded by triple backquote,\r\nyou can't.\r\n\r\nWith the markdown2 module and the extension \"fenced-code-blocks\", you\r\ncan.\r\n\r\nCheck out the difference with the attached image:\r\n\r\nWith the current 'markdown' module:\r\n![markdown](https://cloud.githubusercontent.com/assets/6367936/20894857/5a435c5a-bb17-11e6-93c3-687144115845.png)\r\n\r\nWith the new 'markdown2' module:\r\n![markdown2](https://cloud.githubusercontent.com/assets/6367936/20894878/6d9aade4-bb17-11e6-83ae-d3098796d6ab.png)\r\n\r\n\r\nHere the base class for the picture:\r\n\r\n```python\r\nclass Test():\r\n    '''This is my test class\r\n\r\n    *Parameters:*\r\n\r\n    - `arg1`: The first argument\r\n    - `arg2`: A second one\r\n\r\n    *Exemple:*\r\n\r\n    ```\r\n    i = 0\r\n    for i < 10:\r\n        print(i)\r\n        i += 1\r\n\r\n    print(\"OK\")\r\n    ```\r\n    '''\r\n    def __init__(self):\r\n        pass\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mitmproxy/pdoc/issues/comments/419406742","html_url":"https://github.com/mitmproxy/pdoc/pull/119#issuecomment-419406742","issue_url":"https://api.github.com/repos/mitmproxy/pdoc/issues/119","id":419406742,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTQwNjc0Mg==","user":{"login":"realitix","id":6367936,"node_id":"MDQ6VXNlcjYzNjc5MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/6367936?v=4","gravatar_id":"","url":"https://api.github.com/users/realitix","html_url":"https://github.com/realitix","followers_url":"https://api.github.com/users/realitix/followers","following_url":"https://api.github.com/users/realitix/following{/other_user}","gists_url":"https://api.github.com/users/realitix/gists{/gist_id}","starred_url":"https://api.github.com/users/realitix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realitix/subscriptions","organizations_url":"https://api.github.com/users/realitix/orgs","repos_url":"https://api.github.com/users/realitix/repos","events_url":"https://api.github.com/users/realitix/events{/privacy}","received_events_url":"https://api.github.com/users/realitix/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T11:08:26Z","updated_at":"2018-09-07T11:08:26Z","author_association":"NONE","body":"Great!"}}
{"actor":{"display_login":"realitix"}}