refactor(admonitions): remove no longer needed custom conversion

pull/1847/head
Elian Doran 2025-03-13 22:21:43 +07:00
parent 504879b11c
commit a3354d4d10
1 changed files with 1 additions and 7 deletions

@ -73,13 +73,7 @@ export default class AdmonitionEditing extends Plugin {
editor.conversion.for("downcast")
.elementToElement( {
model: 'aside',
view: (modelElement, { writer }) => {
return writer.createContainerElement(
"aside", {
class: [ "admonition", modelElement.getAttribute("type") ].join(" ")
}
)
}
view: "aside"
})
.attributeToAttribute({
model: "type",