feat: support inline style and style tag
This commit is contained in:
parent
25fa502f5f
commit
0bc9f5d953
|
|
@ -72,10 +72,14 @@ export const renderPageContent = (
|
|||
.use(rehypeImage, { env })
|
||||
.use(rehypeSanitize, {
|
||||
...defaultSchema,
|
||||
tagNames: [...(defaultSchema.tagNames || []), "video", "iframe"],
|
||||
tagNames: [...(defaultSchema.tagNames || []), "video", "iframe", "style"],
|
||||
attributes: {
|
||||
...defaultSchema.attributes,
|
||||
div: [...(defaultSchema.attributes?.div || []), ["className"]],
|
||||
div: [
|
||||
...(defaultSchema.attributes?.div || []),
|
||||
["className"],
|
||||
["style"],
|
||||
],
|
||||
code: [["className"]],
|
||||
blockquote: allowedBlockquoteAttrs,
|
||||
video: [
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ export default function SubdomainEditor() {
|
|||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||
updateValue("tags", e.target.value)
|
||||
}
|
||||
help="Separate multiple tags with commas"
|
||||
help='Separate multiple tags with English commas ","'
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue