Socket
Socket
Sign inDemoInstall

@tiptap/extension-typography

Package Overview
Dependencies
Maintainers
0
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-typography

typography extension for tiptap


Version published
Maintainers
0
Created

What is @tiptap/extension-typography?

@tiptap/extension-typography is an extension for the Tiptap editor that provides advanced typography features. It enhances the text editing experience by automatically transforming certain text patterns into their typographically correct forms.

What are @tiptap/extension-typography's main functionalities?

Smart Quotes

Automatically converts straight quotes to smart quotes. For example, typing '"Hello"' will be transformed into '“Hello”'.

import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';

const editor = new Editor({
  extensions: [
    Typography,
  ],
});

// Typing '"Hello"' in the editor will automatically convert to '“Hello”'.

Ellipsis

Automatically converts three consecutive dots '...' into an ellipsis '…'.

import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';

const editor = new Editor({
  extensions: [
    Typography,
  ],
});

// Typing '...' in the editor will automatically convert to '…'.

En Dash and Em Dash

Automatically converts double hyphens '--' to en dashes '–' and triple hyphens '---' to em dashes '—'.

import Typography from '@tiptap/extension-typography';
import { Editor } from '@tiptap/core';

const editor = new Editor({
  extensions: [
    Typography,
  ],
});

// Typing '--' in the editor will automatically convert to '–' (en dash).
// Typing '---' in the editor will automatically convert to '—' (em dash).

Other packages similar to @tiptap/extension-typography

Keywords

FAQs

Package last updated on 15 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc