ember-md-block
Insert markdown blocks in your template files. They will be compiled into html at build time.
Compatibility
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Installation
ember install ember-md-block
Usage
will be compiled to
Configuration
Configuration options can be placed in your config/environment.js
under the 'ember-md-block'
key.
Custom block delimiters
You can define your own regex to find markdown blocks. Just use the blockRegexes
option:
ENV['ember-md-block'] = {
blockRegexes: {
begin: /\CUSTOM-BLOCK\b/,
end: /\CUSTOM-BLOCK\b/,
},
};
Custom block wapper
You can also define your block wrapper own regex to find markdown blocks. Just use the blockRegexes
option:
ENV['ember-md-block'] = {
wrapper: {
begin: '<div class="markdown">\n',
end: '</div>\n',
},
};
Contributing
See the Contributing guide for details.
Thanks
License
This project is licensed under the MIT License.