Files
docx-js/src/file/paragraph/math/n-ary/math-accent-character.ts
Dolan 4d1a351649 Documentation and Refactoring (#3028)
* Documentation and Refactoring

* Documentation and Refactoring

* Fix lint issues

* Convert components to Builder style

---------

Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
2025-04-14 16:43:15 +05:30

13 lines
453 B
TypeScript

// http://www.datypic.com/sc/ooxml/e-m_chr-1.html
import { BuilderElement, XmlComponent } from "@file/xml-components";
type MathAccentCharacterOptions = { readonly accent: string };
export const createMathAccentCharacter = ({ accent }: MathAccentCharacterOptions): XmlComponent =>
new BuilderElement<MathAccentCharacterOptions>({
name: "m:chr",
attributes: {
accent: { key: "m:val", value: accent },
},
});