{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4549","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4549/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4549/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4549/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/4549","id":305677763,"number":4549,"title":"gatsby-remark-prismjs: allow adding aliases (e.g. sh => bash)","user":{"login":"docwhat","id":40799,"avatar_url":"https://avatars1.githubusercontent.com/u/40799?v=4","gravatar_id":"","url":"https://api.github.com/users/docwhat","html_url":"https://github.com/docwhat","followers_url":"https://api.github.com/users/docwhat/followers","following_url":"https://api.github.com/users/docwhat/following{/other_user}","gists_url":"https://api.github.com/users/docwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/docwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docwhat/subscriptions","organizations_url":"https://api.github.com/users/docwhat/orgs","repos_url":"https://api.github.com/users/docwhat/repos","events_url":"https://api.github.com/users/docwhat/events{/privacy}","received_events_url":"https://api.github.com/users/docwhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T18:51:15Z","updated_at":"2018-03-15T19:48:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It would be nice if the `gatsby-remark-prismjs` plugin would allow adding aliases.\r\n\r\nSomething like this would be good:\r\n\r\n```javascript\r\n// In your gatsby-config.js\r\nplugins: [\r\n  {\r\n    resolve: `gatsby-transformer-remark`,\r\n    options: {\r\n      plugins: [\r\n        {\r\n          resolve: `gatsby-remark-prismjs`,\r\n          options: {\r\n            classPrefix: \"language-\",\r\n            aliases: {\r\n              'sh': \"bash\",\r\n              'js': \"javascript\",\r\n              // etc.\r\n            }\r\n          },\r\n        },\r\n      ],\r\n    },\r\n  },\r\n];\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/373500951","html_url":"https://github.com/gatsbyjs/gatsby/issues/4549#issuecomment-373500951","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/4549","id":373500951,"user":{"login":"KyleAMathews","id":71047,"avatar_url":"https://avatars3.githubusercontent.com/u/71047?v=4","gravatar_id":"","url":"https://api.github.com/users/KyleAMathews","html_url":"https://github.com/KyleAMathews","followers_url":"https://api.github.com/users/KyleAMathews/followers","following_url":"https://api.github.com/users/KyleAMathews/following{/other_user}","gists_url":"https://api.github.com/users/KyleAMathews/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleAMathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleAMathews/subscriptions","organizations_url":"https://api.github.com/users/KyleAMathews/orgs","repos_url":"https://api.github.com/users/KyleAMathews/repos","events_url":"https://api.github.com/users/KyleAMathews/events{/privacy}","received_events_url":"https://api.github.com/users/KyleAMathews/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T19:48:02Z","updated_at":"2018-03-15T19:48:02Z","author_association":"CONTRIBUTOR","body":"That'd be cool! Does PrismJS have some sort of native way of doing this? I'm a bit wary of adding additional features to our PrismJS implementation as it'd be confusing to people expecting PrismJS to work as normal."}}
{"actor":{"display_login":"KyleAMathews"}}