{"action":"created","comment":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/88809355","pull_request_review_id":9370785,"id":88809355,"diff_hunk":"@@ -6,16 +6,17 @@ import (\n \n \t. \"code.gitea.io/gitea/modules/markdown\"\n \t\"code.gitea.io/gitea/modules/setting\"\n-\t\"github.com/russross/blackfriday\"\n \t. \"github.com/smartystreets/goconvey/convey\"\n )\n \n func TestMarkdown(t *testing.T) {\n+\tsetting.AppUrl = \"http://gogs/\"","path":"modules/markdown/markdown_test.go","position":9,"original_position":9,"commit_id":"d9c9f15dc7095eb6a1ba08ce7fcaa3e4f4670fa8","original_commit_id":"d9c9f15dc7095eb6a1ba08ce7fcaa3e4f4670fa8","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"body":"```go\r\noldAppUrl := setting.AppUrl\r\ndefer func() {\r\n    setting.AppUrl = oldAppUrl\r\n}()\r\nsetting.AppUrl = \"http://gogs/\"\r\n```","created_at":"2016-11-20T19:40:14Z","updated_at":"2016-11-20T19:43:51Z","html_url":"https://github.com/go-gitea/gitea/pull/186#discussion_r88809355","pull_request_url":"https://api.github.com/repos/go-gitea/gitea/pulls/186","_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/88809355"},"html":{"href":"https://github.com/go-gitea/gitea/pull/186#discussion_r88809355"},"pull_request":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/186","id":93960892,"html_url":"https://github.com/go-gitea/gitea/pull/186","diff_url":"https://github.com/go-gitea/gitea/pull/186.diff","patch_url":"https://github.com/go-gitea/gitea/pull/186.patch","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/186","number":186,"state":"open","locked":false,"title":"Markdown rendering overhaul","user":{"login":"STALKER2010","id":3063662,"avatar_url":"https://avatars.githubusercontent.com/u/3063662?v=3","gravatar_id":"","url":"https://api.github.com/users/STALKER2010","html_url":"https://github.com/STALKER2010","followers_url":"https://api.github.com/users/STALKER2010/followers","following_url":"https://api.github.com/users/STALKER2010/following{/other_user}","gists_url":"https://api.github.com/users/STALKER2010/gists{/gist_id}","starred_url":"https://api.github.com/users/STALKER2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STALKER2010/subscriptions","organizations_url":"https://api.github.com/users/STALKER2010/orgs","repos_url":"https://api.github.com/users/STALKER2010/repos","events_url":"https://api.github.com/users/STALKER2010/events{/privacy}","received_events_url":"https://api.github.com/users/STALKER2010/received_events","type":"User","site_admin":false},"body":"The majority of markdown files should now look great.\r\n1. Implemented sidebar and footer (GitHub like). Header can also be done, but even GitHub doesn't implement one.\r\n2. Implemented `[[...]]` image & link handling. It is quite a feature. It supports a variety of syntaxes.\r\n\r\n``` markdown\r\n![logo](http://libgdx.badlogicgames.com/img/logo.png)\r\n[[[https://d3js.org/logo.svg|alt=\"D3js Logo\"|height=210px|width=210px]]](https://d3js.org)\r\n[[https://d3js.org/logo.svg|alt=\"D3js Logo\"|height=210px|width=210px]]\r\n[[Install]]\r\n[[my internal link|internal-ref]]\r\n![](000 hello world.png)\r\nIt is my great responsibility to send you... to http://google.com in order to find all your answers there.\r\nThe point is, <https://google.com> is more correct.\r\n[Wiki](Home) ▸ **API Reference**\r\n[[semantic versioning|http://semver.org]]\r\n[[images/icon-install.png]]\r\n```\r\n1. Added the ability to display any kind of text blobs with rendering as Markdown. For example [guard](https://github.com/guard/guard/wiki) uses Textile for its Home wiki page. Textile and markdown have common roots, so that it renders perfectly with Markdown parser. Anyway, it is better to display something, than to display nothing.\r\n2. Fixed a bug in markdown parser (stopped any special formatting after non-closeable tags like img)\r\n3. I've mirrored about 15 wikis. Everything renders fine, all images are resolved perfectly (even html hardcoded should work in most cases).","created_at":"2016-11-16T12:58:25Z","updated_at":"2016-11-20T19:43:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adc8ebf29a8fcefd3f1ad5114b3662b2f3141866","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/2","html_url":"https://github.com/go-gitea/gitea/milestones/1.1.0","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/2/labels","id":2111550,"number":2,"title":"1.1.0","description":"","creator":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":2,"state":"open","created_at":"2016-11-03T08:40:10Z","updated_at":"2016-11-20T18:36:25Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/go-gitea/gitea/pulls/186/commits","review_comments_url":"https://api.github.com/repos/go-gitea/gitea/pulls/186/comments","review_comment_url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/186/comments","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/d9c9f15dc7095eb6a1ba08ce7fcaa3e4f4670fa8","head":{"label":"STALKER2010:markdownPR","ref":"markdownPR","sha":"d9c9f15dc7095eb6a1ba08ce7fcaa3e4f4670fa8","user":{"login":"STALKER2010","id":3063662,"avatar_url":"https://avatars.githubusercontent.com/u/3063662?v=3","gravatar_id":"","url":"https://api.github.com/users/STALKER2010","html_url":"https://github.com/STALKER2010","followers_url":"https://api.github.com/users/STALKER2010/followers","following_url":"https://api.github.com/users/STALKER2010/following{/other_user}","gists_url":"https://api.github.com/users/STALKER2010/gists{/gist_id}","starred_url":"https://api.github.com/users/STALKER2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STALKER2010/subscriptions","organizations_url":"https://api.github.com/users/STALKER2010/orgs","repos_url":"https://api.github.com/users/STALKER2010/repos","events_url":"https://api.github.com/users/STALKER2010/events{/privacy}","received_events_url":"https://api.github.com/users/STALKER2010/received_events","type":"User","site_admin":false},"repo":{"id":73919020,"name":"gitea","full_name":"STALKER2010/gitea","owner":{"login":"STALKER2010","id":3063662,"avatar_url":"https://avatars.githubusercontent.com/u/3063662?v=3","gravatar_id":"","url":"https://api.github.com/users/STALKER2010","html_url":"https://github.com/STALKER2010","followers_url":"https://api.github.com/users/STALKER2010/followers","following_url":"https://api.github.com/users/STALKER2010/following{/other_user}","gists_url":"https://api.github.com/users/STALKER2010/gists{/gist_id}","starred_url":"https://api.github.com/users/STALKER2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STALKER2010/subscriptions","organizations_url":"https://api.github.com/users/STALKER2010/orgs","repos_url":"https://api.github.com/users/STALKER2010/repos","events_url":"https://api.github.com/users/STALKER2010/events{/privacy}","received_events_url":"https://api.github.com/users/STALKER2010/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/STALKER2010/gitea","description":"Gitea: Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/STALKER2010/gitea","forks_url":"https://api.github.com/repos/STALKER2010/gitea/forks","keys_url":"https://api.github.com/repos/STALKER2010/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STALKER2010/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STALKER2010/gitea/teams","hooks_url":"https://api.github.com/repos/STALKER2010/gitea/hooks","issue_events_url":"https://api.github.com/repos/STALKER2010/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/STALKER2010/gitea/events","assignees_url":"https://api.github.com/repos/STALKER2010/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/STALKER2010/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/STALKER2010/gitea/tags","blobs_url":"https://api.github.com/repos/STALKER2010/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STALKER2010/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STALKER2010/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/STALKER2010/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STALKER2010/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/STALKER2010/gitea/languages","stargazers_url":"https://api.github.com/repos/STALKER2010/gitea/stargazers","contributors_url":"https://api.github.com/repos/STALKER2010/gitea/contributors","subscribers_url":"https://api.github.com/repos/STALKER2010/gitea/subscribers","subscription_url":"https://api.github.com/repos/STALKER2010/gitea/subscription","commits_url":"https://api.github.com/repos/STALKER2010/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/STALKER2010/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/STALKER2010/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/STALKER2010/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/STALKER2010/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/STALKER2010/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STALKER2010/gitea/merges","archive_url":"https://api.github.com/repos/STALKER2010/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STALKER2010/gitea/downloads","issues_url":"https://api.github.com/repos/STALKER2010/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/STALKER2010/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/STALKER2010/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/STALKER2010/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STALKER2010/gitea/labels{/name}","releases_url":"https://api.github.com/repos/STALKER2010/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/STALKER2010/gitea/deployments","created_at":"2016-11-16T12:40:35Z","updated_at":"2016-11-16T12:40:38Z","pushed_at":"2016-11-20T10:49:47Z","git_url":"git://github.com/STALKER2010/gitea.git","ssh_url":"git@github.com:STALKER2010/gitea.git","clone_url":"https://github.com/STALKER2010/gitea.git","svn_url":"https://github.com/STALKER2010/gitea","homepage":"http://gitea.io","size":96090,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-gitea:master","ref":"master","sha":"871c964ef7aaf70af5e9eab00a3d6642432b122a","user":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"repo":{"id":72495579,"name":"gitea","full_name":"go-gitea/gitea","owner":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-gitea/gitea","description":"Gitea: Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/go-gitea/gitea","forks_url":"https://api.github.com/repos/go-gitea/gitea/forks","keys_url":"https://api.github.com/repos/go-gitea/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-gitea/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-gitea/gitea/teams","hooks_url":"https://api.github.com/repos/go-gitea/gitea/hooks","issue_events_url":"https://api.github.com/repos/go-gitea/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/go-gitea/gitea/events","assignees_url":"https://api.github.com/repos/go-gitea/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/go-gitea/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/go-gitea/gitea/tags","blobs_url":"https://api.github.com/repos/go-gitea/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-gitea/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-gitea/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-gitea/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/go-gitea/gitea/languages","stargazers_url":"https://api.github.com/repos/go-gitea/gitea/stargazers","contributors_url":"https://api.github.com/repos/go-gitea/gitea/contributors","subscribers_url":"https://api.github.com/repos/go-gitea/gitea/subscribers","subscription_url":"https://api.github.com/repos/go-gitea/gitea/subscription","commits_url":"https://api.github.com/repos/go-gitea/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-gitea/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-gitea/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-gitea/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-gitea/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/go-gitea/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-gitea/gitea/merges","archive_url":"https://api.github.com/repos/go-gitea/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-gitea/gitea/downloads","issues_url":"https://api.github.com/repos/go-gitea/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/go-gitea/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/go-gitea/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/go-gitea/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-gitea/gitea/labels{/name}","releases_url":"https://api.github.com/repos/go-gitea/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/go-gitea/gitea/deployments","created_at":"2016-11-01T02:13:26Z","updated_at":"2016-11-20T11:41:12Z","pushed_at":"2016-11-20T19:14:26Z","git_url":"git://github.com/go-gitea/gitea.git","ssh_url":"git@github.com:go-gitea/gitea.git","clone_url":"https://github.com/go-gitea/gitea.git","svn_url":"https://github.com/go-gitea/gitea","homepage":"http://gitea.io","size":97330,"stargazers_count":101,"watchers_count":101,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":68,"forks":19,"open_issues":68,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/186"},"html":{"href":"https://github.com/go-gitea/gitea/pull/186"},"issue":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/186"},"comments":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/go-gitea/gitea/statuses/d9c9f15dc7095eb6a1ba08ce7fcaa3e4f4670fa8"}}}}
{"actor":{"display_login":"andreynering"}}