1.1.4 • Published 4 years ago

remark-codeset v1.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

remark-codeset

Adds syntax to parse sets of code blocks in markdown. Transforms them to tablist.

Install

npm install --save remark-codeset

How to use

import unified from 'unified';
import markdown from 'remark-parse';
import codeset from 'remark-codeset';
import remark2rehype from 'remark-rehype';
import html from 'rehype-stringify';

const processor = unified()
    .use(markdown)
    .use(codeset)
    .use(remark2rehype)
    .use(html);

const conent = `...`;

processor.process(content, (err, file) => {
    if (err) throw err;
    console.log(String(file));
});
    
1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago