1.0.2 • Published 4 months ago

marked-smartypants-lite v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

marked-smartypants-lite

Easily translate plain ASCII punctuation characters into "smart" typographic punctuation HTML entities.

A "lite" version of marked-smartypants with the goal of maintaining high speed. Does not use the full featureset of smartypants due to high overhead slowdowns in that package, but is instead based on the faster, simpler implementation previously bundled with Marked.js < v5.0.0.

Usage

import { marked } from "marked";
import { markedSmartypantsLite } from "marked-smartypants-lite";

// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-smartypants-lite/lib/index.umd.js"></script>

marked.use(markedSmartypantsLite());

marked.parse("He said, -- \"A 'simple' sentence. . .\" --- unknown");
// <p>He said, – “A ‘simple’ sentence…” — unknown</p>
1.0.2

4 months ago

1.0.1

7 months ago

1.0.0

11 months ago