use callout markdown syntax

This commit is contained in:
Cory LaViska
2024-12-10 09:54:37 -05:00
parent 62cf254365
commit f15814c784
2 changed files with 5 additions and 12 deletions

View File

@@ -15,13 +15,9 @@ layout: component
This component is used right here in the docs to render code examples.
<wa-callout variant="danger">
<wa-icon name="circle-exclamation" slot="icon" variant="regular"></wa-icon>
Do not render untrusted content in a `<wa-code-demo>` element.
This component renders the content as HTML, which introduces XSS vulnerabilities if used with untrusted content.
</wa-callout>
:::warning
Do not render untrusted content in a `<wa-code-demo>` element. This component renders the content as HTML, which introduces XSS vulnerabilities if used with untrusted content.
:::
## Examples

View File

@@ -10,12 +10,9 @@ layout: component
</wa-viewport-demo>
```
<wa-callout variant="danger">
<wa-icon name="circle-exclamation" slot="icon" variant="regular"></wa-icon>
:::warning
A lot of the functionality of this component will not work on cross-origin iframes.
</wa-callout>
:::
## Examples