Files
tiptap/docs/src/docPages/api/extensions/typography.md
2021-04-21 15:31:11 +02:00

2.5 KiB
Raw Blame History

Typography

Version Downloads

This extension tries to help with common text patterns with the correct typographic character. Under the hood all rules are input rules.

Installation

# with npm
npm install @tiptap/extension-typography

# with Yarn
yarn add @tiptap/extension-typography

Rules

Name Description
emDash Converts double dashes -- to an emdash .
ellipsis Converts three dots ... to an ellipsis character
openDoubleQuote Smart” opening double quotes.
closeDoubleQuote “Smart closing double quotes.
openSingleQuote Smart opening single quotes.
closeSingleQuote Smart closing single quotes.
leftArrow Converts < to an arrow .
rightArrow Converts > to an arrow .
copyright Converts (c) to a copyright sign ©.
registeredTrademark Converts (r) to registered trademark sign ®.
oneHalf Converts 1/2 to one half ½.
plusMinus Converts +/- to plus/minus sign ±.
notEqual Converts != to a not equal sign .
laquo Converts << to left-pointing double angle quotation mark «.
raquo Converts >> to right-pointing double angle quotation mark ».
multiplication Converts 2 * 3 or 2x3 to a multiplcation sign 2×3.

Keyboard shortcuts

  • Backspace reverts the applied input rule

Source code

packages/extension-typography/

Usage