
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@yoopta/headings
Advanced tools
Heading block plugins for Yoopta Editor: HeadingOne, HeadingTwo, HeadingThree. Use headless or with theme UI from @yoopta/themes-shadcn.
yarn add @yoopta/headings
Pass the plugins to createYooptaEditor. Do not pass plugins to <YooptaEditor>.
import { useMemo } from 'react';
import YooptaEditor, { createYooptaEditor } from '@yoopta/editor';
import { HeadingOne, HeadingTwo, HeadingThree } from '@yoopta/headings';
const plugins = [HeadingOne, HeadingTwo, HeadingThree];
export default function Editor() {
const editor = useMemo(() => createYooptaEditor({ plugins, marks: [] }), []);
return <YooptaEditor editor={editor} onChange={() => {}} />;
}
import { applyTheme } from '@yoopta/themes-shadcn';
const plugins = applyTheme([
Paragraph,
HeadingOne,
HeadingTwo,
HeadingThree,
]);
| Plugin | Title | Shortcuts |
|---|---|---|
| HeadingOne | Heading 1 | ['h1', '#', '*'] |
| HeadingTwo | Heading 2 | ['h2', '##'] |
| HeadingThree | Heading 3 | ['h3', '###'] |
HeadingOne.extend({
elements: {
'heading-one': { render: (props) => <YourH1 {...props} /> },
},
options: {
shortcuts: ['h1', 'title'],
display: { title: 'Heading 1', description: 'Big section heading' },
HTMLAttributes: { className: 'my-heading-one' },
},
});
.yoopta-heading-one, .yoopta-heading-two, .yoopta-heading-threeSee Headings plugin docs and Core plugins.
FAQs
Headings plugin for Yoopta Editor
The npm package @yoopta/headings receives a total of 4,433 weekly downloads. As such, @yoopta/headings popularity was classified as popular.
We found that @yoopta/headings demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.