https://github.com/adapttive/remark-external-preview
External Preview Plugin for Remark
https://github.com/adapttive/remark-external-preview
Last synced: 2 months ago
JSON representation
External Preview Plugin for Remark
- Host: GitHub
- URL: https://github.com/adapttive/remark-external-preview
- Owner: adapttive
- License: mit
- Created: 2021-03-06T17:44:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T04:10:25.000Z (4 months ago)
- Last Synced: 2025-05-04T17:03:18.358Z (2 months ago)
- Language: JavaScript
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-external-preview
External Preview Plugin for Remark## Installation
`npm install @adapttive/remark-external-preview` or
`yarn add @adapttive/remark-external-preview`
## Usage
```js
const remark = require("remark");
const html = require('remark-html');
const externalPreview = require('@adapttive/remark-external-preview');remark()
.use(html)
.use(externalPreview)
.process(
"# Hi" +
"\n[@external:code:github](https://github.com/milindsingh/magento2-grumphp/blob/2d9be8cf5c9da07256af5194370e9a9326e30881/module/grumphp.yml#L1-L134)",
function(err, output) {
console.log(String(output))
console.error(err)
}
);
```