{"id":23209839,"url":"https://github.com/saswatpadhi/prismjs-bibtex","last_synced_at":"2025-08-19T04:32:45.097Z","repository":{"id":57330640,"uuid":"176064395","full_name":"SaswatPadhi/prismjs-bibtex","owner":"SaswatPadhi","description":"A language definition for BibTeX in the PrismJS syntax highlighting framework.","archived":false,"fork":false,"pushed_at":"2023-12-24T08:37:40.000Z","size":747,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-07T19:53:51.373Z","etag":null,"topics":["bibtex","bibtex-js","bibtex2html","bibtexparser","highlight","prismjs","publications","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://saswatpadhi.github.io/prismjs-bibtex","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaswatPadhi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-17T06:25:34.000Z","updated_at":"2023-09-04T20:06:31.000Z","dependencies_parsed_at":"2023-12-24T09:28:52.706Z","dependency_job_id":"62cdb2bd-87e1-4307-85fc-622b05f6058b","html_url":"https://github.com/SaswatPadhi/prismjs-bibtex","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.3571428571428571,"last_synced_commit":"56256b81e7d533504ea5173f3eaadd5d795afcc4"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaswatPadhi%2Fprismjs-bibtex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaswatPadhi%2Fprismjs-bibtex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaswatPadhi%2Fprismjs-bibtex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaswatPadhi%2Fprismjs-bibtex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaswatPadhi","download_url":"https://codeload.github.com/SaswatPadhi/prismjs-bibtex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230320873,"owners_count":18208265,"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":["bibtex","bibtex-js","bibtex2html","bibtexparser","highlight","prismjs","publications","syntax-highlighting"],"created_at":"2024-12-18T18:29:53.823Z","updated_at":"2024-12-18T18:29:54.493Z","avatar_url":"https://github.com/SaswatPadhi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"PrismJS-BibTeX\n========\n\n[![npm package](https://img.shields.io/npm/v/prismjs-bibtex?logo=npm\u0026style=for-the-badge)](https://www.npmjs.com/package/prismjs-bibtex)\n[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/prismjs-bibtex?color=gold\u0026logo=javascript\u0026style=for-the-badge)](https://www.jsdelivr.com/package/npm/prismjs-bibtex)\n\nA [BibTeX] language extension for [PrismJS].\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/screenshot.png\" width=\"720\"/\u003e  \n\u003c/p\u003e\n\n## Usage\n\n### In HTML\n\nSimply import the `prism-bibtex.min.js` (recommended at the end of `body`):\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js\"\u003e\n\u003c/script\u003e\n```\n\nI recommend using the [SRI (Subresource Integrity)][SRI] hash as well:\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.js\"\n        integrity=\"sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0=\"\n        crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"\u003e\n\u003c/script\u003e\n```\n\nRemember to import the PrismJS stylesheets and scripts **before** importing this extension.\nFor example:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-solarizedlight.min.css\"/\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js\"\u003e\n\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js\"\u003e\n\u003c/script\u003e\n```\n\n### In NodeJS\n\n1. Add the package to your project:\n\n    ```console\n    $ npm install prismjs-bibtex\n    ```\n\n2. Import `prismjs-bibtex` your .js file, after Prism:\n\n    ```js\n    import Prism from 'prismjs';\n    import 'prismjs-bibtex';\n    ```\n\n\n\n## Examples\n\nCheck out some small BibTeX examples [on the project webpage](https://saswatpadhi.github.io/prismjs-bibtex/). You can also check the performance on large real-life `.bib` files below:\n- (~68\u0026thinsp;KB) [Some BibTeX examples from CTAN](https://saswatpadhi.github.io/prismjs-bibtex/biblatex-examples.html)\n- (~144\u0026thinsp;KB) [Bibliography of ACM Turing Award lectures](https://saswatpadhi.github.io/prismjs-bibtex/acm-turing-awards.html)\n- (~534\u0026thinsp;KB) [STOC 2010 -- 2019 bibliography](https://saswatpadhi.github.io/prismjs-bibtex/stoc_2010-2019.html)\n\n\n\n\n\n[BibTeX]:   http://www.bibtex.org/\n[prismjs]:  https://prismjs.com/\n[SRI]:      https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaswatpadhi%2Fprismjs-bibtex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaswatpadhi%2Fprismjs-bibtex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaswatpadhi%2Fprismjs-bibtex/lists"}