{"id":15155387,"url":"https://github.com/Hedmor/tiptap-extension-code-block-prism","last_synced_at":"2025-05-02T08:30:38.141Z","repository":{"id":64194610,"uuid":"571227330","full_name":"Hedmor/tiptap-extension-code-block-prism","owner":"Hedmor","description":"An extension for TipTap editor that adds syntax highlighting support from Prism.js .","archived":false,"fork":false,"pushed_at":"2023-01-04T09:31:45.000Z","size":14,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T20:33:05.868Z","etag":null,"topics":["jsx","mdx","syntax-highlighting","tiptap"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Hedmor.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":"2022-11-27T15:18:37.000Z","updated_at":"2025-03-29T00:16:37.000Z","dependencies_parsed_at":"2023-01-15T03:45:54.466Z","dependency_job_id":null,"html_url":"https://github.com/Hedmor/tiptap-extension-code-block-prism","commit_stats":null,"previous_names":["depressingutopian/tiptap-extension-code-block-prism","hedmor/tiptap-extension-code-block-prism","hebmor/tiptap-extension-code-block-prism"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hedmor%2Ftiptap-extension-code-block-prism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hedmor%2Ftiptap-extension-code-block-prism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hedmor%2Ftiptap-extension-code-block-prism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hedmor%2Ftiptap-extension-code-block-prism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hedmor","download_url":"https://codeload.github.com/Hedmor/tiptap-extension-code-block-prism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252008695,"owners_count":21679624,"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":["jsx","mdx","syntax-highlighting","tiptap"],"created_at":"2024-09-26T18:21:09.263Z","updated_at":"2025-05-02T08:30:37.854Z","avatar_url":"https://github.com/Hedmor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" # :bookmark:CodeBlockPrism extension for TIPTAP Editor\n This extension is based on [CodeBlockLowlight](https://tiptap.dev/api/nodes/code-block-lowlight). Most of the code in this repository is taken from there.\n ## :cat: What for? Why not CodeBlockLowlight?\n \n Unfortunately CodeBlockLowlight is based on [LowLight](https://github.com/wooorm/lowlight) and [Highlight.js](https://github.com/highlightjs/highlight.js/), \n Highlight.js supports many languages ​​but doesn't support many useful syntax. For example: **JSX, TSX, MDX.**\n \n The list of supported Prism.js languages ​​can be found here:  https://prismjs.com/#supported-languages\n ## ✍️ How to use it?\n ```js\nconst editor = useEditor({\n    extensions: [\n        Document,\n        Paragraph,\n        Text,\n        CodeBlock,\n        CodeBlockPrism.configure({\n            defaultLanguage: 'jsx',\n        }),\n    ],\n    content: ``,\n});\n ```\n  ## :hammer_and_wrench: How to style classes generated by PrismJS?\n  You can define styles via CSS. There are already ready-made themes, for example: [OneDark](https://github.com/AGMStudio/prism-theme-one-dark/blob/master/prism-onedark.css)\n  \n  \u003cimg src=\"https://user-images.githubusercontent.com/47321719/204143666-b5b1c279-8f93-431b-9e99-0dd505c53c56.png\" width=\"580\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHedmor%2Ftiptap-extension-code-block-prism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHedmor%2Ftiptap-extension-code-block-prism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHedmor%2Ftiptap-extension-code-block-prism/lists"}