remark-enhance-image
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

介绍

增强markdown图片语法功能,如果url以 ~ 开头,则会被替换为publicPath,默认是 ''

remark()
  .use(remarkEnhanceImage, { publicPath: 'htttp://domain/' })
  .processSync('![图片1](~img/1.png)');

//=> ![图片1](htttp://domain/img/1.png)

Readme

Keywords

none

Package Sidebar

Install

npm i remark-enhance-image

Weekly Downloads

0

Version

0.7.0

License

MIT

Unpacked Size

1.49 kB

Total Files

4

Last publish

Collaborators

  • yinjiazeng