UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

15 lines (11 loc) 377 B
// http://www.datypic.com/sc/ooxml/e-m_sup-3.html import { XmlComponent } from "file/xml-components"; import { MathComponent } from "../math-component"; export class MathSuperScriptElement extends XmlComponent { constructor(children: MathComponent[]) { super("m:sup"); for (const child of children) { this.root.push(child); } } }