Skip to content

Commit

Permalink
Remove substitutions, marked#1532
Browse files Browse the repository at this point in the history
  • Loading branch information
yahtnif committed Nov 16, 2019
1 parent b799c51 commit e2a9b9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand All @@ -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));
// <p>I am using <strong>Smarkdown</strong>.</p>

console.log(Smarkdown.parse(str, { nop: true }))
console.log(Smarkdown.parse(str, { nop: true }));
// I am using <strong>Smarkdown</strong>.
```

Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e2a9b9f

Please sign in to comment.