Files
docx-js/src/file/paragraph/math/brackets/math-ending-char.ts

13 lines
471 B
TypeScript
Raw Normal View History

2020-10-10 13:41:26 +01:00
// http://www.datypic.com/sc/ooxml/e-m_endChr-1.html
import { BuilderElement, XmlComponent } from "@file/xml-components";
2020-10-10 13:41:26 +01:00
type MathEndingCharacterOptions = { readonly character: string };
2020-10-10 13:41:26 +01:00
export const createMathEndingCharacter = ({ character }: MathEndingCharacterOptions): XmlComponent =>
new BuilderElement<MathEndingCharacterOptions>({
name: "m:endChr",
attributes: {
character: { key: "m:val", value: character },
},
});