{"action":"opened","issue":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/244","labels_url":"https://api.github.com/repos/gettalong/kramdown/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/gettalong/kramdown/issues/244/comments","events_url":"https://api.github.com/repos/gettalong/kramdown/issues/244/events","html_url":"https://github.com/gettalong/kramdown/issues/244","id":69360593,"number":244,"title":"Support \"-\" (dash) in name of code block lang","user":{"login":"dg-ratiodata","id":1267524,"avatar_url":"https://avatars.githubusercontent.com/u/1267524?v=3","gravatar_id":"","url":"https://api.github.com/users/dg-ratiodata","html_url":"https://github.com/dg-ratiodata","followers_url":"https://api.github.com/users/dg-ratiodata/followers","following_url":"https://api.github.com/users/dg-ratiodata/following{/other_user}","gists_url":"https://api.github.com/users/dg-ratiodata/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-ratiodata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-ratiodata/subscriptions","organizations_url":"https://api.github.com/users/dg-ratiodata/orgs","repos_url":"https://api.github.com/users/dg-ratiodata/repos","events_url":"https://api.github.com/users/dg-ratiodata/events{/privacy}","received_events_url":"https://api.github.com/users/dg-ratiodata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-18T23:35:46Z","updated_at":"2015-04-18T23:35:46Z","closed_at":null,"body":"Hi @gettalong,\r\n\r\nare you going to accept a PR which makes it possible to use a dash in the code block language?\r\n\r\n    ~~~ mermaid-graph\r\n    ~~~\r\n\r\nMaybe it's just this [line](https://github.com/gettalong/kramdown/blob/master/lib/kramdown/parser/kramdown/codeblock.rb#L35) which needs to be changed to\r\n\r\n```ruby\r\nFENCED_CODEBLOCK_MATCH = /^((~){3,})\\s*?(\\w+-)?\\s*?\\n(.*?)^\\1\\2*\\s*?\\n/m\r\n```"}}