{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/comments/188828823","pull_request_review_id":120884401,"id":188828823,"diff_hunk":"@@ -11,20 +10,19 @@ internal static class BuildMarkdown\n         public static Task Build(Context context, Document file, TableOfContentsMap tocMap)\n         {\n             var markdown = file.ReadText();\n-            var model = new PageModel<string> { Content = Markup(markdown) };\n+            var (html, yamlHeader) = MarkdownUtility.Markup(markdown, file, context);\n+            var content = !string.IsNullOrEmpty(html) ? $\"<div>{html.Trim()}</div>\" : \"\";\n+            var model = new PageModel<string> { Content = content };\n \n             context.WriteJson(model, file.OutputPath);\n \n             var metadata = Metadata.FetchFromConfig(file);","path":"src/docfx/build/markdown/BuildMarkdown.cs","position":19,"original_position":19,"commit_id":"a8cf4b06e70269e2ba68dd7bbed82071229febee","original_commit_id":"badcf8832dca131e2f16060b12f94d872c88e8bb","user":{"login":"yufeih","id":511355,"avatar_url":"https://avatars0.githubusercontent.com/u/511355?v=4","gravatar_id":"","url":"https://api.github.com/users/yufeih","html_url":"https://github.com/yufeih","followers_url":"https://api.github.com/users/yufeih/followers","following_url":"https://api.github.com/users/yufeih/following{/other_user}","gists_url":"https://api.github.com/users/yufeih/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeih/subscriptions","organizations_url":"https://api.github.com/users/yufeih/orgs","repos_url":"https://api.github.com/users/yufeih/repos","events_url":"https://api.github.com/users/yufeih/events{/privacy}","received_events_url":"https://api.github.com/users/yufeih/received_events","type":"User","site_admin":false},"body":"*fetch* is misleading here.","created_at":"2018-05-17T03:12:59Z","updated_at":"2018-05-17T03:12:59Z","html_url":"https://github.com/dotnet/docfx/pull/2778#discussion_r188828823","pull_request_url":"https://api.github.com/repos/dotnet/docfx/pulls/2778","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments/188828823"},"html":{"href":"https://github.com/dotnet/docfx/pull/2778#discussion_r188828823"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2778"}},"in_reply_to_id":188828197},"pull_request":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/2778","id":188377606,"html_url":"https://github.com/dotnet/docfx/pull/2778","diff_url":"https://github.com/dotnet/docfx/pull/2778.diff","patch_url":"https://github.com/dotnet/docfx/pull/2778.patch","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/2778","number":2778,"state":"open","locked":false,"title":"Integrate markdig and extensions","user":{"login":"yufeih","id":511355,"avatar_url":"https://avatars0.githubusercontent.com/u/511355?v=4","gravatar_id":"","url":"https://api.github.com/users/yufeih","html_url":"https://github.com/yufeih","followers_url":"https://api.github.com/users/yufeih/followers","following_url":"https://api.github.com/users/yufeih/following{/other_user}","gists_url":"https://api.github.com/users/yufeih/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeih/subscriptions","organizations_url":"https://api.github.com/users/yufeih/orgs","repos_url":"https://api.github.com/users/yufeih/repos","events_url":"https://api.github.com/users/yufeih/events{/privacy}","received_events_url":"https://api.github.com/users/yufeih/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-16T09:53:29Z","updated_at":"2018-05-17T03:12:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e98bc868e91989fb4d293020a96f550cff13e2d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vicancy","id":668244,"avatar_url":"https://avatars0.githubusercontent.com/u/668244?v=4","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},{"login":"herohua","id":2174068,"avatar_url":"https://avatars3.githubusercontent.com/u/2174068?v=4","gravatar_id":"","url":"https://api.github.com/users/herohua","html_url":"https://github.com/herohua","followers_url":"https://api.github.com/users/herohua/followers","following_url":"https://api.github.com/users/herohua/following{/other_user}","gists_url":"https://api.github.com/users/herohua/gists{/gist_id}","starred_url":"https://api.github.com/users/herohua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herohua/subscriptions","organizations_url":"https://api.github.com/users/herohua/orgs","repos_url":"https://api.github.com/users/herohua/repos","events_url":"https://api.github.com/users/herohua/events{/privacy}","received_events_url":"https://api.github.com/users/herohua/received_events","type":"User","site_admin":false},{"login":"vwxyzh","id":2705828,"avatar_url":"https://avatars2.githubusercontent.com/u/2705828?v=4","gravatar_id":"","url":"https://api.github.com/users/vwxyzh","html_url":"https://github.com/vwxyzh","followers_url":"https://api.github.com/users/vwxyzh/followers","following_url":"https://api.github.com/users/vwxyzh/following{/other_user}","gists_url":"https://api.github.com/users/vwxyzh/gists{/gist_id}","starred_url":"https://api.github.com/users/vwxyzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vwxyzh/subscriptions","organizations_url":"https://api.github.com/users/vwxyzh/orgs","repos_url":"https://api.github.com/users/vwxyzh/repos","events_url":"https://api.github.com/users/vwxyzh/events{/privacy}","received_events_url":"https://api.github.com/users/vwxyzh/received_events","type":"User","site_admin":false},{"login":"928PJY","id":17958546,"avatar_url":"https://avatars1.githubusercontent.com/u/17958546?v=4","gravatar_id":"","url":"https://api.github.com/users/928PJY","html_url":"https://github.com/928PJY","followers_url":"https://api.github.com/users/928PJY/followers","following_url":"https://api.github.com/users/928PJY/following{/other_user}","gists_url":"https://api.github.com/users/928PJY/gists{/gist_id}","starred_url":"https://api.github.com/users/928PJY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/928PJY/subscriptions","organizations_url":"https://api.github.com/users/928PJY/orgs","repos_url":"https://api.github.com/users/928PJY/repos","events_url":"https://api.github.com/users/928PJY/events{/privacy}","received_events_url":"https://api.github.com/users/928PJY/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docfx/pulls/2778/commits","review_comments_url":"https://api.github.com/repos/dotnet/docfx/pulls/2778/comments","review_comment_url":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/2778/comments","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/a8cf4b06e70269e2ba68dd7bbed82071229febee","head":{"label":"yufeih:mdintegrate","ref":"mdintegrate","sha":"a8cf4b06e70269e2ba68dd7bbed82071229febee","user":{"login":"yufeih","id":511355,"avatar_url":"https://avatars0.githubusercontent.com/u/511355?v=4","gravatar_id":"","url":"https://api.github.com/users/yufeih","html_url":"https://github.com/yufeih","followers_url":"https://api.github.com/users/yufeih/followers","following_url":"https://api.github.com/users/yufeih/following{/other_user}","gists_url":"https://api.github.com/users/yufeih/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeih/subscriptions","organizations_url":"https://api.github.com/users/yufeih/orgs","repos_url":"https://api.github.com/users/yufeih/repos","events_url":"https://api.github.com/users/yufeih/events{/privacy}","received_events_url":"https://api.github.com/users/yufeih/received_events","type":"User","site_admin":false},"repo":{"id":77028436,"name":"docfx","full_name":"yufeih/docfx","owner":{"login":"yufeih","id":511355,"avatar_url":"https://avatars0.githubusercontent.com/u/511355?v=4","gravatar_id":"","url":"https://api.github.com/users/yufeih","html_url":"https://github.com/yufeih","followers_url":"https://api.github.com/users/yufeih/followers","following_url":"https://api.github.com/users/yufeih/following{/other_user}","gists_url":"https://api.github.com/users/yufeih/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeih/subscriptions","organizations_url":"https://api.github.com/users/yufeih/orgs","repos_url":"https://api.github.com/users/yufeih/repos","events_url":"https://api.github.com/users/yufeih/events{/privacy}","received_events_url":"https://api.github.com/users/yufeih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yufeih/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":true,"url":"https://api.github.com/repos/yufeih/docfx","forks_url":"https://api.github.com/repos/yufeih/docfx/forks","keys_url":"https://api.github.com/repos/yufeih/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yufeih/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yufeih/docfx/teams","hooks_url":"https://api.github.com/repos/yufeih/docfx/hooks","issue_events_url":"https://api.github.com/repos/yufeih/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/yufeih/docfx/events","assignees_url":"https://api.github.com/repos/yufeih/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/yufeih/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/yufeih/docfx/tags","blobs_url":"https://api.github.com/repos/yufeih/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yufeih/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yufeih/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/yufeih/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yufeih/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/yufeih/docfx/languages","stargazers_url":"https://api.github.com/repos/yufeih/docfx/stargazers","contributors_url":"https://api.github.com/repos/yufeih/docfx/contributors","subscribers_url":"https://api.github.com/repos/yufeih/docfx/subscribers","subscription_url":"https://api.github.com/repos/yufeih/docfx/subscription","commits_url":"https://api.github.com/repos/yufeih/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/yufeih/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/yufeih/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/yufeih/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/yufeih/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/yufeih/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yufeih/docfx/merges","archive_url":"https://api.github.com/repos/yufeih/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yufeih/docfx/downloads","issues_url":"https://api.github.com/repos/yufeih/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/yufeih/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/yufeih/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/yufeih/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yufeih/docfx/labels{/name}","releases_url":"https://api.github.com/repos/yufeih/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/yufeih/docfx/deployments","created_at":"2016-12-21T07:24:17Z","updated_at":"2016-12-21T07:24:25Z","pushed_at":"2018-05-17T03:09:17Z","git_url":"git://github.com/yufeih/docfx.git","ssh_url":"git@github.com:yufeih/docfx.git","clone_url":"https://github.com/yufeih/docfx.git","svn_url":"https://github.com/yufeih/docfx","homepage":"http://dotnet.github.io/docfx/","size":165880,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"dotnet:v3","ref":"v3","sha":"6f7590cb40c48a0fce29da850af77f7d54d66713","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2018-05-16T15:35:05Z","pushed_at":"2018-05-17T03:09:38Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":329457,"stargazers_count":1116,"watchers_count":1116,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":312,"mirror_url":null,"archived":false,"open_issues_count":245,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":312,"open_issues":245,"watchers":1116,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2778"},"html":{"href":"https://github.com/dotnet/docfx/pull/2778"},"issue":{"href":"https://api.github.com/repos/dotnet/docfx/issues/2778"},"comments":{"href":"https://api.github.com/repos/dotnet/docfx/issues/2778/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2778/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2778/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docfx/statuses/a8cf4b06e70269e2ba68dd7bbed82071229febee"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"yufeih"}}