feat(build): migrate from Prettier to Oxfmt for performant code formatting (#42434)

This commit is contained in:
Đỗ Trọng Hải
2026-08-04 00:27:05 +07:00
committed by GitHub
parent 10f7927603
commit e4ef84ca72
2328 changed files with 90728 additions and 32682 deletions

View File

@@ -33,22 +33,22 @@ The SafeMarkdown component from Superset's UI library.
<StoryWithControls
component="SafeMarkdown"
props={{
htmlSanitization: true
}}
htmlSanitization: true,
}}
controls={[
{
name: "htmlSanitization",
label: "Html Sanitization",
type: "boolean",
description: "Enable HTML sanitization (recommended for user input)"
},
{
name: "source",
label: "Source",
type: "text",
description: "Markdown source string to render"
}
]}
{
name: 'htmlSanitization',
label: 'Html Sanitization',
type: 'boolean',
description: 'Enable HTML sanitization (recommended for user input)',
},
{
name: 'source',
label: 'Source',
type: 'text',
description: 'Markdown source string to render',
},
]}
/>
## Try It
@@ -57,19 +57,15 @@ Edit the code below to experiment with the component:
```tsx live
function Demo() {
return (
<SafeMarkdown
htmlSanitization
/>
);
return <SafeMarkdown htmlSanitization />;
}
```
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `htmlSanitization` | `boolean` | `true` | Enable HTML sanitization (recommended for user input) |
| Prop | Type | Default | Description |
| ------------------ | --------- | ------- | ----------------------------------------------------- |
| `htmlSanitization` | `boolean` | `true` | Enable HTML sanitization (recommended for user input) |
## Import