{"id":13462503,"url":"https://github.com/gaearon/gitbook-plugin-prism","last_synced_at":"2025-04-07T12:06:10.416Z","repository":{"id":40005252,"uuid":"42362148","full_name":"gaearon/gitbook-plugin-prism","owner":"gaearon","description":"Gitbook plugin for Prism highlighting","archived":false,"fork":false,"pushed_at":"2022-11-06T16:30:26.000Z","size":72,"stargazers_count":89,"open_issues_count":9,"forks_count":26,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T23:25:54.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaearon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-12T15:32:30.000Z","updated_at":"2024-12-26T19:20:22.000Z","dependencies_parsed_at":"2022-06-26T04:01:50.462Z","dependency_job_id":null,"html_url":"https://github.com/gaearon/gitbook-plugin-prism","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaearon%2Fgitbook-plugin-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaearon%2Fgitbook-plugin-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaearon%2Fgitbook-plugin-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaearon%2Fgitbook-plugin-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaearon","download_url":"https://codeload.github.com/gaearon/gitbook-plugin-prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T12:00:49.953Z","updated_at":"2025-04-07T12:06:10.394Z","avatar_url":"https://github.com/gaearon.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"Gitbook Plugin for [Prism](http://prismjs.com/)\n==============\n\n[![NPM](http://img.shields.io/npm/v/gitbook-plugin-prism.svg?style=flat-square\u0026label=npm)](https://www.npmjs.com/package/gitbook-plugin-prism)\n\n##### Before\n\u003cimg src='http://i.imgur.com/cbk6O52.png'\u003e\n\n##### After\n\u003cimg src='http://i.imgur.com/S1YMlee.png'\u003e\n\n## Usage\n\nAdd the plugin to your `book.json`, and disable default GitBook code highlighting:\n\n```json\n{\n  \"plugins\": [\"prism\", \"-highlight\"]\n}\n```\n\n## Options\n\n\n### `css`\nOverride default styles.  All css files must reside in the same folder.\n\n```json\n\"pluginsConfig\": {\n  \"prism\": {\n    \"css\": [\n      \"prismjs/themes/prism-solarizedlight.css\"\n    ]\n  }\n}\n```\n\n### `lang`\nSupport non-standard syntax prefixes by aliasing existing prefixes.\n\n```json\n\"pluginsConfig\": {\n  \"prism\": {\n    \"lang\": {\n      \"flow\": \"typescript\"\n    }\n  }\n}\n```\n\n### `ignore`\nDue to other plugins using code block notion to denote other functionality, you can ignore certain langs\n\n```json\n\"pluginsConfig\": {\n  \"prism\": {\n    \"ignore\": [\n      \"mermaid\",\n      \"eval-js\"\n    ]\n  }\n}\n```\n\n### Prism Themes\n\n[https://github.com/PrismJS/prism](https://github.com/PrismJS/)\n\n#### Okaidia \u003csmall\u003e`prismjs/themes/prism-okaidia.css`\u003c/small\u003e\n![Okaidia](http://i.imgur.com/uhe0yQY.png)\n\n#### Solarized Light \u003csmall\u003e`prismjs/themes/prism-solarizedlight.css`\u003c/small\u003e\n![Solarized Light](http://i.imgur.com/71sT5XB.png)\n\n#### Tomorrow \u003csmall\u003e`prismjs/themes/prism-tomorrow.css`\u003c/small\u003e\n![Tomorrow](http://i.imgur.com/Li3AHXU.png)\n\n#### Dark \u003csmall\u003e`prismjs/themes/prism-dark.css`\u003c/small\u003e\n![Dark](http://i.imgur.com/vA5P6fy.png)\n\n#### Coy \u003csmall\u003e`prismjs/themes/prism-coy.css`\u003c/small\u003e\n![Coy](http://i.imgur.com/kSJP9tq.png)\n\n## Atelierbram Themes\n\n[https://github.com/atelierbram/syntax-highlighting](https://github.com/atelierbram/syntax-highlighting)\n\n#### Base16 Ocean Dark \u003csmall\u003e`syntax-highlighting/assets/css/prism/prism-base16-ocean.dark.css`\u003c/small\u003e\n![Base16 Ocean Dark](http://i.imgur.com/REJCdrA.png)\n\n#### Google Light \u003csmall\u003e`syntax-highlighting/assets/css/prism/prism-base16-google.light.css`\u003c/small\u003e\n![Google Light](http://i.imgur.com/TyBYmSu.png)\n\n#### Xonokai \u003csmall\u003e`syntax-highlighting/assets/css/prism/prism-xonokai.css`\u003c/small\u003e\n![Google Light](http://i.imgur.com/fPjEEv8.png)\n\n## Credits\n\nOriginally based on https://github.com/spricity/google_code_prettify.\n\n## License\n\nApache 2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaearon%2Fgitbook-plugin-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaearon%2Fgitbook-plugin-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaearon%2Fgitbook-plugin-prism/lists"}