markdown-component-loader icon indicating copy to clipboard operation
markdown-component-loader copied to clipboard

Expose markdown-it enable/disable methods in loader options.

Open dvogel opened this issue 6 years ago • 2 comments

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.

dvogel avatar Oct 02 '19 15:10 dvogel

Codecov Report

Merging #179 into develop will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          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 data Powered by Codecov. Last update c371692...da09bab. Read the comment docs.

codecov-io avatar Oct 02 '19 16:10 codecov-io

@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.

gileswells avatar Oct 26 '20 15:10 gileswells