fix: improve closure templates and hover styling
This commit is contained in:
parent
3012ad4348
commit
81657e52d8
5 changed files with 69 additions and 79 deletions
|
|
@ -318,6 +318,14 @@ export function sanitizeEditorHtml(html: string): string {
|
|||
}
|
||||
}
|
||||
|
||||
export function stripLeadingEmptyParagraphs(html: string): string {
|
||||
if (!html) return ""
|
||||
return html.replace(
|
||||
/^(?:\s| | |<br\s*\/?>|<p>(?:\s| | |<br\s*\/?>)*<\/p>)+/gi,
|
||||
""
|
||||
)
|
||||
}
|
||||
|
||||
export function RichTextContent({ html, className }: { html: string; className?: string }) {
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue