{"action":"closed","issue":{"url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1644","repository_url":"https://api.github.com/repos/gitbucket/gitbucket","labels_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1644/labels{/name}","comments_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1644/comments","events_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1644/events","html_url":"https://github.com/gitbucket/gitbucket/issues/1644","id":242879194,"number":1644,"title":"Failed to render pandoc markdown style code blocks in markdown file preview (and issue form)","user":{"login":"tmori3y2","id":18054170,"avatar_url":"https://avatars3.githubusercontent.com/u/18054170?v=4","gravatar_id":"","url":"https://api.github.com/users/tmori3y2","html_url":"https://github.com/tmori3y2","followers_url":"https://api.github.com/users/tmori3y2/followers","following_url":"https://api.github.com/users/tmori3y2/following{/other_user}","gists_url":"https://api.github.com/users/tmori3y2/gists{/gist_id}","starred_url":"https://api.github.com/users/tmori3y2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmori3y2/subscriptions","organizations_url":"https://api.github.com/users/tmori3y2/orgs","repos_url":"https://api.github.com/users/tmori3y2/repos","events_url":"https://api.github.com/users/tmori3y2/events{/privacy}","received_events_url":"https://api.github.com/users/tmori3y2/received_events","type":"User","site_admin":false},"labels":[{"id":46328436,"url":"https://api.github.com/repos/gitbucket/gitbucket/labels/improvement","name":"improvement","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars1.githubusercontent.com/u/1094760?v=4","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"assignees":[{"login":"takezoe","id":1094760,"avatar_url":"https://avatars1.githubusercontent.com/u/1094760?v=4","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gitbucket/gitbucket/milestones/61","html_url":"https://github.com/gitbucket/gitbucket/milestone/61","labels_url":"https://api.github.com/repos/gitbucket/gitbucket/milestones/61/labels","id":2614504,"number":61,"title":"4.15","description":"","creator":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars1.githubusercontent.com/u/1094760?v=4","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":12,"state":"open","created_at":"2017-06-30T11:00:41Z","updated_at":"2017-07-18T18:16:32Z","due_on":"2017-07-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2017-07-14T02:20:00Z","updated_at":"2017-07-18T18:16:32Z","closed_at":"2017-07-18T18:16:32Z","body":"## Issue\r\n**Impacted version**: 4.13.0\r\n\r\n**Deployment mode**: using gitBucket which is hosted on a server of a university which is a collaborative research partner via a proxy of my company\r\n\r\n**Problem description**:\r\n- Markdown document using markdown dialect (pandoc markdown) is committed to the repository.\r\n- When previewing this document with gitBucket, the code block is not recognized correctly.\r\n- The same problem also occurs on the issue form. [EDIT]\r\n- No problems with GitHub and GitLab\r\n\r\n**Problem details**:\r\n- Pandoc markdown like R Markdown and PHP Markdown Extra can specify information (id, class, attribute) for setting styles enclosed in {}, like {# id. Class 1 attribute 1 = value 1}.\r\n- Fenced code blocks is one of them.\r\n- GitHub and GitLab ignore {} after the start mark (\\`\\`\\`) of fenced code blocks, but gitBucket does not seem to ignore {}.\r\n- As a result, the code block is compressed to one line, the code block is not recognized, or the body between the code blocks enters the code block.\r\n\r\nPlease allow that the posted image is a captured image of gitBucket's issue form because I can not commit unnecessary documents to the servers of other organizations.\r\n\r\n**the code block is compressed to one line**:\r\n![gitbucket_issue_render_code_block_001_001](https://user-images.githubusercontent.com/18054170/28195382-cb93041c-6884-11e7-8d9f-bb51768d3b47.PNG)\r\n\r\n![gitbucket_issue_render_code_block_001_002](https://user-images.githubusercontent.com/18054170/28195541-d105d658-6885-11e7-85e1-9591cd1cf44e.PNG)\r\n\r\n**the code block is not recognized**:\r\n![gitbucket_issue_render_code_block_002_001](https://user-images.githubusercontent.com/18054170/28195560-fb7539d8-6885-11e7-85c1-d40f2a58823e.PNG)\r\n\r\n![gitbucket_issue_render_code_block_002_002](https://user-images.githubusercontent.com/18054170/28195562-ffe271b6-6885-11e7-9478-140a0b6cdbc4.PNG)\r\n\r\n**the body between the code blocks enters the code block**:\r\n![gitbucket_issue_render_code_block_003_001](https://user-images.githubusercontent.com/18054170/28195571-0e788ce2-6886-11e7-8102-bc7cf68310f0.PNG)\r\n\r\n![gitbucket_issue_render_code_block_003_002](https://user-images.githubusercontent.com/18054170/28195576-12ea75c4-6886-11e7-9fcb-1711842b1c9c.PNG)\r\n\r\nBest Regards\r\n\r\n"}}
{"actor":{"display_login":"takezoe"}}