
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
extension-code-block-prism
Advanced tools
An extension for TipTap that adds code syntax highlighting via Prism.js.
This extension is based on CodeBlockLowlight. Most of the code in this repository is taken from there.
Unfortunately CodeBlockLowlight is based on LowLight and Highlight.js, Highlight.js supports many languages but doesn't support many useful syntax. For example: JSX, TSX, MDX.
The list of supported Prism.js languages can be found here: https://prismjs.com/#supported-languages
const editor = useEditor({
extensions: [
Document,
Paragraph,
Text,
CodeBlock,
CodeBlockPrism.configure({
defaultLanguage: 'jsx',
}),
],
content: ``,
});
You can define styles via CSS. There are already ready-made themes, for example: OneDark
FAQs
code block extension for tiptap
The npm package extension-code-block-prism receives a total of 0 weekly downloads. As such, extension-code-block-prism popularity was classified as not popular.
We found that extension-code-block-prism demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.