
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
tiptap-parser
Advanced tools
HTML parser to React component built on the top of html-react-parser with code syntax highlighting
tiptap-parser: HTML parser for Tiptap html-react-parser with code syntax highlighting.
Try it yourself in this CodeSandbox live demo
npm install tiptap-parser
or
yarn add tiptap-parser
import TiptapParser from "tiptap-parser";
const html = `<h1>Hello world</h1>`;
function App() {
return (
<TiptapParser>
{html}
</TiptapParser>
);
}
const html = `<><h1>Hello there</h1><code>console.log("Log something here")</code></>`;
function App() {
return (
<TiptapParser language="typescript">
{html}
</TiptapParser>
);
}
const html = `<p><h1>Hello there</h1></p>`;
<TiptapParser
classNames={{
codeClassName: 'p-6',
h1ClassName: 'text-xl',
aClassName: 'underline',
pClassName: 'text-gray-400'
}}
/>
{html}
</TiptapParser>
props | type | Default value | Description |
---|---|---|---|
containerClassName | string | empty | styles of the container |
classNames | ClassNameProps | empty | class names of each element withing the container |
language | string | empty | language of the code. see the list |
props | type | Default value | Description |
---|---|---|---|
codeClassName | string | empty | class name of code element |
h1ClassName | string | empty | class name of h1 element |
h2ClassName | string | empty | class name of h2 element |
h3ClassName | string | empty | class name of h3 element |
h4ClassName | string | empty | class name of h4 element |
h5ClassName | string | empty | class name of h5 element |
h6ClassName | string | empty | class name of h6 element |
pClassName | string | empty | class name of p element |
ulClassName | string | empty | class name of ul element |
spanClassName | string | empty | class name of span element |
divClassName | string | empty | class name of div element |
aClassName | string | empty | class name of a element |
tableClassName | string | empty | class name of table element |
imageClassName | string | empty | class name of image element |
Get started here.
FAQs
HTML parser to React component built on the top of html-react-parser with code syntax highlighting
The npm package tiptap-parser receives a total of 148 weekly downloads. As such, tiptap-parser popularity was classified as not popular.
We found that tiptap-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.