UNPKG

docx

Version:

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

14 lines (11 loc) 374 B
// http://www.datypic.com/sc/ooxml/e-m_fName-1.html import { XmlComponent } from "file/xml-components"; import { MathComponent } from "../math-component"; export class MathFunctionName extends XmlComponent { constructor(children: MathComponent[]) { super("m:fName"); for (const child of children) { this.root.push(child); } } }