{"action":"created","issue":{"url":"https://api.github.com/repos/PrismJS/prism/issues/950","repository_url":"https://api.github.com/repos/PrismJS/prism","labels_url":"https://api.github.com/repos/PrismJS/prism/issues/950/labels{/name}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/950/comments","events_url":"https://api.github.com/repos/PrismJS/prism/issues/950/events","html_url":"https://github.com/PrismJS/prism/pull/950","id":153461640,"number":950,"title":"add plugin custom class name","user":{"login":"dvkndn","id":5953369,"avatar_url":"https://avatars.githubusercontent.com/u/5953369?v=3","gravatar_id":"","url":"https://api.github.com/users/dvkndn","html_url":"https://github.com/dvkndn","followers_url":"https://api.github.com/users/dvkndn/followers","following_url":"https://api.github.com/users/dvkndn/following{/other_user}","gists_url":"https://api.github.com/users/dvkndn/gists{/gist_id}","starred_url":"https://api.github.com/users/dvkndn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvkndn/subscriptions","organizations_url":"https://api.github.com/users/dvkndn/orgs","repos_url":"https://api.github.com/users/dvkndn/repos","events_url":"https://api.github.com/users/dvkndn/events{/privacy}","received_events_url":"https://api.github.com/users/dvkndn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-06T14:23:47Z","updated_at":"2016-06-03T08:21:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PrismJS/prism/pulls/950","html_url":"https://github.com/PrismJS/prism/pull/950","diff_url":"https://github.com/PrismJS/prism/pull/950.diff","patch_url":"https://github.com/PrismJS/prism/pull/950.patch"},"body":"This plugin allows to replace Prism default class names (like `.comment`, `.string`, `.property`, etc) with your defined ones (like `.editor__comment` (BEM style) or `._7sh3a` (CSS Modules hashed class)).\r\n\r\nFor more information, please see the plugin page: http://quoinex.github.io/prism/plugins/custom-class-name/\r\n\r\nIssue: #947 "},"comment":{"url":"https://api.github.com/repos/PrismJS/prism/issues/comments/223519639","html_url":"https://github.com/PrismJS/prism/pull/950#issuecomment-223519639","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/950","id":223519639,"user":{"login":"zeitgeist87","id":1210795,"avatar_url":"https://avatars.githubusercontent.com/u/1210795?v=3","gravatar_id":"","url":"https://api.github.com/users/zeitgeist87","html_url":"https://github.com/zeitgeist87","followers_url":"https://api.github.com/users/zeitgeist87/followers","following_url":"https://api.github.com/users/zeitgeist87/following{/other_user}","gists_url":"https://api.github.com/users/zeitgeist87/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitgeist87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitgeist87/subscriptions","organizations_url":"https://api.github.com/users/zeitgeist87/orgs","repos_url":"https://api.github.com/users/zeitgeist87/repos","events_url":"https://api.github.com/users/zeitgeist87/events{/privacy}","received_events_url":"https://api.github.com/users/zeitgeist87/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T08:21:38Z","updated_at":"2016-06-03T08:21:38Z","body":"Sorry for the late response. I was quite busy last month. Looking over your source code I had the following idea. Your plugin could also offer the option of a prefix to all classes. Something like a namespace:\r\n\r\n```js\r\nPrism.plugins.customClassName.prefix(\"mynamespace-\");\r\n```\r\n\r\nThat way the user would not have to provide a map for every possible class. You can of course still support the map. What do you think?"}}
{"actor":{"display_login":"zeitgeist87"}}