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
- Host: GitHub
- URL: https://github.com/posva/markdown-it-custom-block
- Owner: posva
- License: mit
- Created: 2017-05-07T14:26:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-28T08:40:40.000Z (about 1 year ago)
- Last Synced: 2025-04-28T09:58:24.433Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 261 KB
- Stars: 62
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
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)