@razroo/razroo-remark-embed-code
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

remark-embedded-code-snippets

Remark plugin for embedding code snippets from github permalinks.

Usage

yarn add --dev @razroo/razroo-remark-embed-code
import remark from 'remark';
import embeddedCodeSnippets from '@razroo/razroo-remark-embed-code';
import report from 'vfile-reporter';

remark()
  .use(embeddedCodeSnippets)
  .process(markdown, (err, file) => {
    console.log(String(file));
    console.error(report(err || file));
  });

Example

Input

![](https://github.com/jomaxx/remark-embedded-code-snippets/blob/78d8ec567422a9776beb2d48dd826189aed58267/prettier.config.js#L1)

Output

module.exports = require('@spotify/web-scripts/config/prettier.config.js');

Readme

Keywords

none

Package Sidebar

Install

npm i @razroo/razroo-remark-embed-code

Weekly Downloads

21

Version

2.0.1

License

MIT

Unpacked Size

31.5 kB

Total Files

50

Last publish

Collaborators

  • razroo