diff --git a/README.md b/README.md index 588825c..84640a7 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ - **Awesome:** ES6, TypeScript, Rollup, Jest... - **Extensible:** Add your own [extensions](#extensions) - **Fast:** Low-level compiler for parsing markdown without caching or blocking for long periods of time -- **Lightweight:** It's 9kb of minified and gzipped +- **Lightweight:** It's 10kb of minified and gzipped ## Install @@ -35,7 +35,7 @@ npm install smarkdown Import the library as a module: ```js -const Smarkdown = require('smarkdown') +const Smarkdown = require('smarkdown'); ``` Or import the library with a script tag: @@ -47,12 +47,12 @@ Or import the library with a script tag: Example: ```js -const str = 'I am using **Smarkdown**.' +const str = 'I am using **Smarkdown**.'; -console.log(Smarkdown.parse(str)) +console.log(Smarkdown.parse(str)); //

I am using Smarkdown.

-console.log(Smarkdown.parse(str, { nop: true })) +console.log(Smarkdown.parse(str, { nop: true })); // I am using Smarkdown. ``` diff --git a/src/index.ts b/src/index.ts index be97f50..4007b5d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,8 +113,6 @@ export default class Smarkdown { src = src .replace(/\r\n|\r/g, '\n') .replace(/\t/g, ' ') - .replace(/\u00a0/g, ' ') - .replace(/\u2424/g, '\n') .replace(/^ +$/gm, ''); return BlockLexer.lex(src, options, true);