Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhowes authored Apr 24, 2024
1 parent ddb4373 commit 888510d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ Assuming you already have `Remarkable` installed, one way to use would be like s

**CommonJS**
```javascript
var Remarkable = require('remarkable');
var plugin = require('remarkable-katex');
var md = new Remarkable();
md.use(plugin);
const {Remarkable, utils } = require('remarkable');
const plugin = require('remarkable-katex');
const md = new Remarkable();
md.use(plugin, {delimiter: ''});
```

**ES6**
```javascript
import { Remarkable } from 'remarkable';
import rkatex from 'remarkable-katex';
import { Remarkable, utils } from 'remarkable';
import { rkatex } from 'remarkable-katex';

var md = new Remarkable();
md.use(rkatex);
const md = new Remarkable();
md.use(rkatex, {delimiter: ''});
```

# Configuration
Expand Down

0 comments on commit 888510d

Please sign in to comment.