Have you read the Contributing Guidelines on issues?
Prerequisites
Description
The following HTML comments are fine:
<!-- Single line comment -->
<!-- Multi
line comment
-->
However, a multi-line comment which does not start on the opening line leads to an error:
<!--
Github Flavoured Markdown does not support tables without headers.
We must use an HTML table here.
Please note that Spacing in this table is important.
Markdown must have empty newlines between it and HTML markup.
-->
And the error:
Error: MDX compilation failed for file "/Users/nicols/git/moodlehq/devdocs/general/releases/2.3.md"
Cause: chunks[startIndex].slice is not a function
Details:
{}
Reproducible demo
No response
Steps to reproduce
Create an mdx file with:
<!--
Github Flavoured Markdown does not support tables without headers.
We must use an HTML table here.
Please note that Spacing in this table is important.
Markdown must have empty newlines between it and HTML markup.
-->
Expected behavior
HTML comment not shown
Actual behavior
An error in the yarn console:
Error: MDX compilation failed for file "/Users/nicols/git/moodlehq/devdocs/general/releases/2.3.md"
Cause: chunks[startIndex].slice is not a function
Details:
{}
Your environment
3.0 branch is at andrewnicols/devdocs@docusaurus3
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
The following HTML comments are fine:
However, a multi-line comment which does not start on the opening line leads to an error:
And the error:
Reproducible demo
No response
Steps to reproduce
Create an mdx file with:
Expected behavior
HTML comment not shown
Actual behavior
An error in the yarn console:
Your environment
3.0 branch is at andrewnicols/devdocs@docusaurus3
Self-service