Make fractions take math component
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user