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) 375 B
// http://www.datypic.com/sc/ooxml/e-m_sub-3.html import { XmlComponent } from "file/xml-components"; import { MathComponent } from "../math-component"; export class MathSubScriptElement extends XmlComponent { constructor(children: MathComponent[]) { super("m:sub"); for (const child of children) { this.root.push(child); } } }