* Documentation and Refactoring * Documentation and Refactoring * Fix lint issues * Convert components to Builder style --------- Co-authored-by: Dolan Miu <dmiu@bloomberg.net>
13 lines
453 B
TypeScript
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 },
|
|
},
|
|
});
|