Expose markdown-it enable/disable methods in loader options.
This allows the component options to specify markdown-it rules to enable or disable. I needed this to take advantage of the default table support. I spent a while looking at markdown-it plugins that support different table syntaxes. It looks like they all override the basic table support, so using them from the component loader would depend on the rule being enabled.
Codecov Report
Merging #179 into develop will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## develop #179 +/- ##
======================================
Coverage 100% 100%
======================================
Files 9 9
Lines 122 122
Branches 25 25
======================================
Hits 122 122
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/convert.js | 100% <ø> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update c371692...da09bab. Read the comment docs.
@ticky would it be possible to consider this for inclusion? Currently there is no way to pass through rules to the enable and disable methods on MarkdownIt and this exposes that. So far as I can tell there isn't really a workaround to this limitation.