Describe the bug
I'm using Sli.dev and I observe a regression when markdown-it-mdc is upgraded from version 0.2.3 to 0.2.4 (see this issue). I started to get Internal server error: Invalid block params when using the MDC syntax for vue component with parameters.
For inline component I found out that the error is only triggered when the component is the first element on a line. For example:
Inline :component{key="value" key2=value2}!
works, but not
:component{key="value" key2=value2}!
Similarly, block components with parameters also give an error.
Reproduction
PR #13
System Info
System:
OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 10.07 GB / 15.29 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
Binaries:
Node: 18.19.1 - /usr/bin/node
npm: 9.2.0 - /usr/bin/npm
Browsers:
Chrome: 128.0.6613.119
Used Package Manager
npm
Validations
Contributions
Describe the bug
I'm using Sli.dev and I observe a regression when
markdown-it-mdcis upgraded from version 0.2.3 to 0.2.4 (see this issue). I started to getInternal server error: Invalid block paramswhen using the MDC syntax for vue component with parameters.For inline component I found out that the error is only triggered when the component is the first element on a line. For example:
works, but not
Similarly, block components with parameters also give an error.
Reproduction
PR #13
System Info
System: OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat) CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz Memory: 10.07 GB / 15.29 GB Container: Yes Shell: 5.2.21 - /bin/bash Binaries: Node: 18.19.1 - /usr/bin/node npm: 9.2.0 - /usr/bin/npm Browsers: Chrome: 128.0.6613.119Used Package Manager
npm
Validations
Contributions