mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fix 3007 (#3028)
* fix code fences never sanitized
* fix mermaid xss
* Revert "fix mermaid xss"
This reverts commit 1ff179a1bd.
* configuable mermaid HTML label
* add locales for mermaid configuration
This commit is contained in:
@@ -341,6 +341,7 @@ class MarkdownEditor extends React.Component {
|
||||
smartArrows={config.preview.smartArrows}
|
||||
breaks={config.preview.breaks}
|
||||
sanitize={config.preview.sanitize}
|
||||
mermaidHTMLLabel={config.preview.mermaidHTMLLabel}
|
||||
ref='preview'
|
||||
onContextMenu={(e) => this.handleContextMenu(e)}
|
||||
onDoubleClick={(e) => this.handleDoubleClick(e)}
|
||||
|
||||
Reference in New Issue
Block a user