Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
fix: Tip and warning notices converted to info on copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Nov 13, 2020
1 parent 091e86e commit a3762d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/nodes/Notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit a3762d6

Please sign in to comment.