{"id":17967602,"url":"https://github.com/ele828/hexo-prism-plugin","last_synced_at":"2025-07-19T19:40:05.062Z","repository":{"id":55935365,"uuid":"62996137","full_name":"ele828/hexo-prism-plugin","owner":"ele828","description":"Hexo plugin for code highlighting by prism.js, supporting JSX syntax","archived":false,"fork":false,"pushed_at":"2022-01-18T07:12:12.000Z","size":135,"stargazers_count":206,"open_issues_count":22,"forks_count":50,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T13:05:33.045Z","etag":null,"topics":["hexo","highlight","plugin","prism"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ele828.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-10T11:48:39.000Z","updated_at":"2025-01-17T13:15:05.000Z","dependencies_parsed_at":"2022-08-15T09:50:34.381Z","dependency_job_id":null,"html_url":"https://github.com/ele828/hexo-prism-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele828%2Fhexo-prism-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele828%2Fhexo-prism-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele828%2Fhexo-prism-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ele828%2Fhexo-prism-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ele828","download_url":"https://codeload.github.com/ele828/hexo-prism-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252940883,"owners_count":21828766,"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":["hexo","highlight","plugin","prism"],"created_at":"2024-10-29T14:09:09.384Z","updated_at":"2025-05-07T19:06:28.568Z","avatar_url":"https://github.com/ele828.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Hexo-Prism-Plugin [![NPM](https://img.shields.io/npm/dm/hexo-prism-plugin.svg)](https://www.npmjs.com/package/hexo-prism-plugin)\nSince `highlight.js` didn't support JSX syntax properly, I wrote this plugin to replace\nHexo's default code highlight plugin.\n\n## Install\n```\nnpm i -S hexo-prism-plugin\n```\n## Usage\nFirstly, you should edit your `_config.yml` by adding following configuration.\n```yaml\nprism_plugin:\n  mode: 'preprocess'    # realtime/preprocess\n  theme: 'default'\n  line_number: false    # default false\n  custom_css: 'path/to/your/custom.css'     # optional\n```\nAfter that, check `highlight` option in `_config.yml`. Make sure that default code highlight plugin is disabled.\n```yaml\nhighlight:\n  enable: false\n```\nFinally, clean and re-generate your project by running following commands:\n\n```\nhexo clean\n```\n\n```\nhexo generate\n```\n\n## Options\n- mode:\n  - realtime  (Parse code on browser in real time)\n  - preprocess  (Preprocess code in node)\n\n- theme:\n  - default\n  - coy\n  - dark\n  - funky\n  - okaidia\n  - solarizedlight\n  - tomorrow\n  - twilight\n  - atom-dark\n  - base16-ateliersulphurpool.light\n  - cb\n  - duotone-dark\n  - duotone-earth\n  - duotone-forest\n  - duotone-light\n  - duotone-sea\n  - duotone-space\n  - ghcolors\n  - hopscotch\n  - pojoaque\n  - vs\n  - xonokai\n\n- line_number:\n  - true (Show line numbers)\n  - false (Default, Hide line numbers)\n\n- no_assets\n  - true (Stop loading asset files)\n  - false (Default, load script and stylesheets files)\n\n## Themes\nYou can check out prism-themes project for additional theme preview:\n\nhttps://github.com/PrismJS/prism-themes#available-themes\n\n## Supported languages\nYou could find the supported languages here:\n\nhttp://prismjs.com/#languages-list\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fele828%2Fhexo-prism-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fele828%2Fhexo-prism-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fele828%2Fhexo-prism-plugin/lists"}