@nartix/tiptap-inline-code-highlight
v1.0.12
Published
Inline code highlight extension for Tiptap editor.
Downloads
96
Maintainers
Readme
@nartix/tiptap-inline-code-highlight
This package is a port of @tiptap/extension-code-block-lowlight
but for highlighting inline codes in the TipTap editor. It uses Lowlight to highlight codes.
Usage
npm install @nartix/tiptap-inline-code-highlight
Import the extension
import CodeInlineLowlight from '@nartix/tiptap-inline-code-highlight';
Add it to your Tiptap editor
const editor = new Editor({
extensions: [
CodeInlineLowlight.configure({
lowlight,
}),
],
});