An open API service indexing awesome lists of open source software.

https://github.com/posva/markdown-it-custom-block

Handle custom blocks transformations for markdown-it
https://github.com/posva/markdown-it-custom-block

Last synced: about 1 year ago
JSON representation

Handle custom blocks transformations for markdown-it

Awesome Lists containing this project

README

          

# markdown-it-custom-block

> Handle custom blocks transformations

## Usage

```js
import customBlock from 'markdown-it-custom-block'

markdownit().use(customBlock, {
example(arg) {
return ``
},
video(url) {
return `

`
},
})
```

```md
@[example](hello)

@[video](video.mp4)
```

becomes

```html

```

## License

[MIT](http://opensource.org/licenses/MIT)