{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/833","labels_url":"https://api.github.com/repos/spf13/hugo/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/833/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/833/events","html_url":"https://github.com/spf13/hugo/pull/833","id":55418038,"number":833,"title":"Add site-wide/per-page [blackfriday] `extensions` option","user":{"login":"naoina","id":382258,"avatar_url":"https://avatars.githubusercontent.com/u/382258?v=3","gravatar_id":"","url":"https://api.github.com/users/naoina","html_url":"https://github.com/naoina","followers_url":"https://api.github.com/users/naoina/followers","following_url":"https://api.github.com/users/naoina/following{/other_user}","gists_url":"https://api.github.com/users/naoina/gists{/gist_id}","starred_url":"https://api.github.com/users/naoina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoina/subscriptions","organizations_url":"https://api.github.com/users/naoina/orgs","repos_url":"https://api.github.com/users/naoina/repos","events_url":"https://api.github.com/users/naoina/events{/privacy}","received_events_url":"https://api.github.com/users/naoina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T14:51:18Z","updated_at":"2015-01-25T23:41:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/hugo/pulls/833","html_url":"https://github.com/spf13/hugo/pull/833","diff_url":"https://github.com/spf13/hugo/pull/833.diff","patch_url":"https://github.com/spf13/hugo/pull/833.patch"},"body":"Currently, Hugo cannot use other Blackfriday's extensions like `EXTENSION_HARD_LINE_BREAK` without code edit.\r\n\r\nI have added feature of `extensions` option to use additional Blackfriday's extensions without code edit.\r\n\r\nFor example, if you want to use `EXTENSION_HARD_LINE_BREAK` extension, add following option to `config.toml`. (or to a front matter of a single page)\r\n\r\n```\r\n[blackfriday]\r\n  extensions = [\"hard_line_break\"]\r\n```\r\n\r\nThe specified extensions add to Hugo's default setting rather than overrides."},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/71400274","html_url":"https://github.com/spf13/hugo/pull/833#issuecomment-71400274","issue_url":"https://api.github.com/repos/spf13/hugo/issues/833","id":71400274,"user":{"login":"bjornerik","id":394382,"avatar_url":"https://avatars.githubusercontent.com/u/394382?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornerik","html_url":"https://github.com/bjornerik","followers_url":"https://api.github.com/users/bjornerik/followers","following_url":"https://api.github.com/users/bjornerik/following{/other_user}","gists_url":"https://api.github.com/users/bjornerik/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornerik/subscriptions","organizations_url":"https://api.github.com/users/bjornerik/orgs","repos_url":"https://api.github.com/users/bjornerik/repos","events_url":"https://api.github.com/users/bjornerik/events{/privacy}","received_events_url":"https://api.github.com/users/bjornerik/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T23:41:30Z","updated_at":"2015-01-25T23:41:30Z","body":"Looks good, one objection:\r\n\r\nThere may be inconsistency in the naming used in Hugo, but `hard_line_break` (i.e. underscore) is not used.\r\n\r\nI suggest going with `hardLineBreak` -- even if it's further from the Blackfriday name (which I believe they also regretted -- as it's not a Go thing with all upper case constants)."}}