Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Admonitions are written through mdx directives. Mdx parses passed class names and provides them in the mdast:
gives
{
"type": "root",
"children": [
{
"type": "containerDirective",
"name": "info",
"attributes": {
"class": "important"
},
"children": []
}
]
}
I would expect the resulting admonition to include the class name, but it doesen't.
I came accross this issue when i wanted to format md-tables inside an admonition with smaller cell padding. Instead of
:::info{.small}
| a | markdown |
| ----- | ------------ |
| table | inside |
:::
i needed to do
:::info
<div className="small">
| a | markdown |
| ----- | ------------ |
| table | inside |
</div>
:::
which works fine, but clutters the md content.
Reproducible demo
https://stackblitz.com/edit/github-on5zd6ky?file=docs%2Fintro.md
Steps to reproduce
yarn run start
- navigate to the
tutorial intro where the table example from above is shown, the css is inside custom.css
Expected behavior
directive classes should be propagated.
Actual behavior
directive classes are ignored
Your environment
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
Admonitions are written through mdx directives. Mdx parses passed class names and provides them in the mdast:
gives
{ "type": "root", "children": [ { "type": "containerDirective", "name": "info", "attributes": { "class": "important" }, "children": [] } ] }I would expect the resulting admonition to include the class name, but it doesen't.
I came accross this issue when i wanted to format md-tables inside an admonition with smaller cell padding. Instead of
i needed to do
which works fine, but clutters the md content.
Reproducible demo
https://stackblitz.com/edit/github-on5zd6ky?file=docs%2Fintro.md
Steps to reproduce
yarn run starttutorial introwhere the table example from above is shown, the css is inside custom.cssExpected behavior
directive classes should be propagated.
Actual behavior
directive classes are ignored
Your environment
Self-service