Make fractions take math component

This commit is contained in:
Dolan Miu
2020-10-12 22:13:03 +01:00
parent 700a74fd4c
commit daea8d2868
7 changed files with 35 additions and 39 deletions

View File

@ -1,11 +1,11 @@
import { XmlComponent } from "file/xml-components";
import { MathRun } from "../math-run";
import { MathComponent } from "../math-component";
export class MathNumerator extends XmlComponent {
constructor(text: string) {
constructor(child: MathComponent) {
super("m:num");
this.root.push(new MathRun(text));
this.root.push(child);
}
}