diff --git a/src/nodes/Notice.tsx b/src/nodes/Notice.tsx index 8c4917df6..0cb826ca2 100644 --- a/src/nodes/Notice.tsx +++ b/src/nodes/Notice.tsx @@ -34,6 +34,13 @@ export default class Notice extends Node { tag: "div.notice-block", preserveWhitespace: "full", contentElement: "div:last-child", + getAttrs: dom => ({ + style: dom.className.includes("tip") + ? "tip" + : dom.className.includes("warning") + ? "warning" + : undefined, + }), }, ], toDOM: node => {