forked from sashin/sashinexists
run npm install to generate a package lock
This commit is contained in:
24
node_modules/marked-smartypants/README.md
generated
vendored
Normal file
24
node_modules/marked-smartypants/README.md
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# marked-smartypants
|
||||
|
||||
Use [smartypants](https://www.npmjs.com/package/smartypants) to easily translate plain ASCII punctuation characters into "smart" typographic punctuation HTML entities.
|
||||
|
||||
# Usage
|
||||
|
||||
```js
|
||||
import { marked } from "marked";
|
||||
import { markedSmartypants } from "marked-smartypants";
|
||||
|
||||
// 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/lib/index.umd.js"></script>
|
||||
|
||||
marked.use(markedSmartypants());
|
||||
|
||||
// or optionally provide smartpants configuration
|
||||
// marked.use(markedSmartypants({ config: "1" }));
|
||||
|
||||
marked.parse("He said, -- \"A 'simple' sentence. . .\" --- unknown");
|
||||
// <p>He said, – “A ‘simple’ sentence…” — unknown</p>
|
||||
```
|
||||
|
||||
Information on available smartypants configurations is available [here](https://github.com/othree/smartypants.js#options-and-configuration).
|
||||
Reference in New Issue
Block a user