mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
21b64d3710
commit
41e2a72c74
5 changed files with 51 additions and 44 deletions
|
|
@ -45,7 +45,7 @@ export const processPasteCode = (html: string, text: string) => {
|
|||
|
||||
export const processRender = (previewPanel: Element) => {
|
||||
const language = previewPanel.getAttribute("data-subtype");
|
||||
if (!["abc", "plantuml", "mermaid", "flowchart", "echarts", "mindmap", "graphviz", "math"].includes(language) || previewPanel.getAttribute("data-type") !== "NodeHTMLBlock") {
|
||||
if (!Constants.SIYUAN_RENDER_CODE_LANGUAGES.includes(language) || previewPanel.getAttribute("data-type") !== "NodeHTMLBlock") {
|
||||
abcRender(previewPanel);
|
||||
htmlRender(previewPanel);
|
||||
plantumlRender(previewPanel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue