Turn math component into array
This commit is contained in:
@ -4,9 +4,11 @@ import { XmlComponent } from "file/xml-components";
|
||||
import { MathComponent } from "../math-component";
|
||||
|
||||
export class MathSuperScriptElement extends XmlComponent {
|
||||
constructor(child: MathComponent) {
|
||||
constructor(children: MathComponent[]) {
|
||||
super("m:sup");
|
||||
|
||||
this.root.push(child);
|
||||
for (const child of children) {
|
||||
this.root.push(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user