{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/362","labels_url":"https://api.github.com/repos/spf13/hugo/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/362/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/362/events","html_url":"https://github.com/spf13/hugo/issues/362","id":37717335,"number":362,"title":"Support GitHub-flavoured markdown code fences for highlighting","user":{"login":"alanpearce","id":850317,"avatar_url":"https://avatars.githubusercontent.com/u/850317?v=3","gravatar_id":"","url":"https://api.github.com/users/alanpearce","html_url":"https://github.com/alanpearce","followers_url":"https://api.github.com/users/alanpearce/followers","following_url":"https://api.github.com/users/alanpearce/following{/other_user}","gists_url":"https://api.github.com/users/alanpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alanpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanpearce/subscriptions","organizations_url":"https://api.github.com/users/alanpearce/orgs","repos_url":"https://api.github.com/users/alanpearce/repos","events_url":"https://api.github.com/users/alanpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alanpearce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-07-12T10:44:51Z","updated_at":"2015-02-28T19:31:25Z","closed_at":null,"body":"I think it would be much better if hugo supported\r\n````markdown\r\n```html\r\n<h1>example</h1>\r\n`` `\r\n````\r\n(The extra space is there to avoid GitHub parsing the inner block as markdown)\r\nfor highlighted code rendering.\r\n\r\nThe reason behind this is that a lot of Markdown editors support code fences, but not the `highlight` tag, so this makes hugo more consistent with other Markdown-renderering projects.\r\n\r\nI don't think it would be too difficult for hugo to re-write the example above into the one below before passing it to pygments. What do you think?\r\n\r\n```django\r\n{{% highlight html %}}\r\n<h1>example</h1>\r\n{{% /highlight %}}\r\n```\r\n\r\nI'd be happy to try implementing this, although I've only got a little bit of experience with go."},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/76541666","html_url":"https://github.com/spf13/hugo/issues/362#issuecomment-76541666","issue_url":"https://api.github.com/repos/spf13/hugo/issues/362","id":76541666,"user":{"login":"nathany","id":4566,"avatar_url":"https://avatars.githubusercontent.com/u/4566?v=3","gravatar_id":"","url":"https://api.github.com/users/nathany","html_url":"https://github.com/nathany","followers_url":"https://api.github.com/users/nathany/followers","following_url":"https://api.github.com/users/nathany/following{/other_user}","gists_url":"https://api.github.com/users/nathany/gists{/gist_id}","starred_url":"https://api.github.com/users/nathany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathany/subscriptions","organizations_url":"https://api.github.com/users/nathany/orgs","repos_url":"https://api.github.com/users/nathany/repos","events_url":"https://api.github.com/users/nathany/events{/privacy}","received_events_url":"https://api.github.com/users/nathany/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T19:31:25Z","updated_at":"2015-02-28T19:31:25Z","body":"Another good reason for highlighting GitHub style code fencing is that blogs from NetsaCMS or Jekyll also use this format. It's one less thing to change when transitioning, and one less place to result in errors, as I ran into with #933."}}