1.0.9 • Published 5 years ago

bisheng-plugin-local-img v1.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Convert local image in markdown file to ReactDom.render

Example:

<img src="./office.jpg" width="100px"> 

to

```__react
ReactDOM.render(<img src={require('./office.jpg')} width="100px"/>, mountNode);```

Usage

Install:

npm i --save bisheng-plugin-local-img

Add 'bisheng-plugin-localimg' to bisehng.config.js's plugins.

module.exports = {
  plugins: ['bisheng-plugin-local-img'],
};
1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago