1.0.3 • Published 9 months ago

@anthonypena/marked-inline-ascii-punctuation v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@anthonypena/marked-inline-ascii-punctuations

Install

npm i @anthonypena/marked-inline-ascii-punctuations

Examples

Add the plugin to your Marked instance

import { markedInlineAsciiPunctuations } from '@anthonypena/marked-inline-ascii-punctuations';
import { Marked } from 'marked';

const marked = new Marked();

marked.use(markedInlineAsciiPunctuations());

Transformation

From:

This is a sentence... with an -- exergue.

to:

<p>This is a sentence… with an — exergue.</p>

Docs

Supported punctuations:

  • ' -- ' ⟹ ' — '
  • ' --- ' ⟹ ' — '
  • '...' ⟹ '…'
1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago

0.1.0

10 months ago