Skip to content

Remark plugin to turn code blocks into carbon.now.sh screenshots.

License

Notifications You must be signed in to change notification settings

Swizec/remark-code-screenshot

Repository files navigation

remark-code-screenshot

Remark plugin to convert code blocks into carbon.now.sh screenshots.

Basic Usage

import remark from 'remark'
import codeScreenshot from 'remark-code-screenshot'

const markdownInput = ["```
    import remark from 'remark'
    import codeScreenshot from 'remark-code-screenshot'

    const markdownInput = \"\"

    remark().use(codeScreenshot)
    .process(markdownInput, function (err, output) {
        console.log(output)
    })
```"]

remark()
    .use(codeScreenshot)
    .process(markdownInput, function (err, output) {
        console.log(output)
    });

Outputs something like this:

About

Remark plugin to turn code blocks into carbon.now.sh screenshots.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published