Icons for admonishments get parsed into first HTML element #3429
Closed
Description
opened on Apr 8, 2022
#3371 introduced admonishments. While very nice, I ran into a few oddities while using them. Right now I am incorporating them through raw HTML rather than MD.
<admon type="warn">
In this example we are using a <code>t2.micro</code> AWS EC2 instance. At the time of writing this is included in the AWS free tier. Make sure that you qualify for this free usage to prevent unexpected spending. When you specify a bulkier <code>cloud-type</code>, your expenses will rise.
</admon>
Because backticks don't get parsed within the HTML element (or e.g. [link](ref)
) I simply used <code></code>
this has the side effect of prepending a warning emoji to the first code element:
I circumvented this by explicitly using a <p>
element, but I'm not sure what the intended behavior here is.
<admon type="warn">
<p>
In this example we are using a <code>t2.micro</code> AWS EC2 instance. At the time of writing this is included in the AWS free tier. Make sure that you qualify for this free usage to prevent unexpected spending. When you specify a bulkier <code>cloud-type</code>, your expenses will rise.
</p>
</admon>
Metadata
Assignees
Labels
No labels
Activity