2019-08-20 20:40:40 +01:00
|
|
|
// http://www.datypic.com/sc/ooxml/e-m_chr-1.html
|
2025-04-14 16:43:15 +05:30
|
|
|
import { BuilderElement, XmlComponent } from "@file/xml-components";
|
2019-08-20 20:40:40 +01:00
|
|
|
|
2025-04-14 16:43:15 +05:30
|
|
|
type MathAccentCharacterOptions = { readonly accent: string };
|
2019-08-20 20:40:40 +01:00
|
|
|
|
2025-04-14 16:43:15 +05:30
|
|
|
export const createMathAccentCharacter = ({ accent }: MathAccentCharacterOptions): XmlComponent =>
|
|
|
|
new BuilderElement<MathAccentCharacterOptions>({
|
|
|
|
name: "m:chr",
|
|
|
|
attributes: {
|
|
|
|
accent: { key: "m:val", value: accent },
|
|
|
|
},
|
|
|
|
});
|