@nartix/tiptap-inline-code-highlight
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

@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,
    }),
  ],
});

Demo

Demo of Tiptap inline code highlight

Package Sidebar

Install

npm i @nartix/tiptap-inline-code-highlight

Weekly Downloads

0

Version

1.0.11

License

MIT

Unpacked Size

6.91 kB

Total Files

6

Last publish

Collaborators

  • nartix