PHP 8.2.30
Preview: rules.ts Size: 979 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/prosemirror-inputrules/src/rules.ts

import {InputRule} from "./inputrules"

/// Converts double dashes to an emdash.
export const emDash = new InputRule(/--$/, "—", {inCodeMark: false})
/// Converts three dots to an ellipsis character.
export const ellipsis = new InputRule(/\.\.\.$/, "…", {inCodeMark: false})
/// “Smart” opening double quotes.
export const openDoubleQuote = new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/, "“", {inCodeMark: false})
/// “Smart” closing double quotes.
export const closeDoubleQuote = new InputRule(/"$/, "”", {inCodeMark: false})
/// “Smart” opening single quotes.
export const openSingleQuote = new InputRule(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/, "‘", {inCodeMark: false})
/// “Smart” closing single quotes.
export const closeSingleQuote = new InputRule(/'$/, "’", {inCodeMark: false})

/// Smart-quote related input rules.
export const smartQuotes: readonly InputRule[] = [openDoubleQuote, closeDoubleQuote, openSingleQuote, closeSingleQuote]

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
271 B lrw-r--r-- 2026-02-28 00:28:06
Edit Download
6.06 KB lrw-r--r-- 2026-02-28 00:28:10
Edit Download
550 B lrw-r--r-- 2026-02-28 00:28:00
Edit Download
2.69 KB lrw-r--r-- 2026-02-28 00:28:14
Edit Download
979 B lrw-r--r-- 2026-02-28 00:28:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).