{"id":15357224,"url":"https://github.com/gera2ld/tw-prism","last_synced_at":"2025-04-15T06:43:27.362Z","repository":{"id":48375378,"uuid":"315360493","full_name":"gera2ld/tw-prism","owner":"gera2ld","description":"TiddlyWiki plugin to provide syntax highlight with PrismJS","archived":false,"fork":false,"pushed_at":"2023-02-06T15:11:49.000Z","size":619,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T06:43:19.971Z","etag":null,"topics":["tiddlywiki-plugin","tiddlywiki5"],"latest_commit_sha":null,"homepage":"https://gera2ld.github.io/tw-prism/","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/gera2ld.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":"2020-11-23T15:37:15.000Z","updated_at":"2024-08-08T05:09:53.000Z","dependencies_parsed_at":"2023-02-19T09:15:36.206Z","dependency_job_id":null,"html_url":"https://github.com/gera2ld/tw-prism","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/gera2ld%2Ftw-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Ftw-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Ftw-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Ftw-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/tw-prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023727,"owners_count":21199958,"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":["tiddlywiki-plugin","tiddlywiki5"],"created_at":"2024-10-01T12:34:05.849Z","updated_at":"2025-04-15T06:43:27.346Z","avatar_url":"https://github.com/gera2ld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tw-prism\n\n![](https://img.shields.io/github/package-json/v/gera2ld/tw-prism)\n\nThis is a [TiddlyWiki](https://tiddlywiki.com/) plugin for syntax highlight with [PrismJS](https://prismjs.com/).\n\nDemo: \u003chttps://gera2ld.github.io/tw-prism/\u003e.\n\n## Why this?\n\nThere is an official tiddlywiki [plugin](https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/highlight) for syntax highlight but it is based on an old version of [highlight.js](https://github.com/isagalaev/highlight.js). It is not easy to update to a newer version or customize styles.\n\nThis plugin was created with automation in mind.\n\nDependencies like PrismJS are defined in package.json and can be easily updated to the latest version with the help of [npm-check-updates](https://github.com/raineorshine/npm-check-updates). Supported languages and additional aliases are defined in `scripts/build.mjs`.\n\nThere is [a dedicated tool](https://gera2ld.github.io/tw-prism/diy.html) for customization of this plugin. You can pick the languages you like and your favorite theme there.\n\n## Installation\n\nSee \u003chttps://gera2ld.github.io/tw-prism/\u003e.\n\n## Building from source\n\nYou can edit definitions and rebuild the plugin by:\n\n```bash\n$ yarn build\n```\n\nThe generated plugin can be found at `dist/gera2ld/prism`.\n\nTo visit the demo, open `dist/data/output/index.html`.\n\n## Local usage\n\n```bash\n# Link dist/gera2ld/prism to your plugins directory\n$ mkdir -p plugins/gera2ld\n$ ln -s /path/to/tw-prism/dist/gera2ld/prism plugins/gera2ld\n\n# Start server with TIDDLYWIKI_PLUGIN_PATH\n$ TIDDLYWIKI_PLUGIN_PATH=plugins tiddlywiki data\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Ftw-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Ftw-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Ftw-prism/lists"}