-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs-test-gen] Indented code blocks ignored #37
Comments
Can't reproduce this by just indenting them. But I can reproduce this when putting them in a block like this (ignore the backslashes, otherwise GH formatting would terminate them):
But that's standard with Markdown parsers. If you want to use Markdown syntax inside of HTML tags, you need to add one newline between the tag and the Markdown syntax. This is how it works (tested it locally):
|
You're right that this only happens inside blocks, but for me it still happens with newlines in-between. <Tabs items={['example']}>
<Tabs.Tab>
\```rust template="execute"
this should fail!
\```
</Tabs.Tab>
</Tabs> |
Apparently this is an issue with So this is a disclaimer to everyone writing docs: DO NOT INDENT YOUR CODEBLOCK MORE THAN ONE TAB! OTHERWISE THE PARSER WILL NOT PICK IT UP AND IGNORE IT |
SEE #37 (comment) FOR DISCLAIMER
Original issue follows now
Code blocks that are indented with whitespace are silently ignored by the docs-test-gen.
This is mostly a problem when putting code blocks inside
<Tabs></Tabs>
.The text was updated successfully, but these errors were encountered: