Download packages/mathml2omml/src/mathml/math.js from muthuk1/OpenMAIC-React: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/muthuk1/OpenMAIC-React/resolve/main/packages/mathml2omml/src/mathml/math.js
- Command line
-
hf download hf://muthuk1/OpenMAIC-React/packages/mathml2omml/src/mathml/math.js
-
curl -L -o math.js https://huggingface.co/muthuk1/OpenMAIC-React/resolve/main/packages/mathml2omml/src/mathml/math.js
535 Bytes
| export function math(element, targetParent, previousSibling, nextSibling, ancestors) { | |
| targetParent.name = 'm:oMath' | |
| targetParent.attribs = { | |
| 'xmlns:m': 'http://schemas.openxmlformats.org/officeDocument/2006/math', | |
| 'xmlns:w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main' | |
| } | |
| targetParent.type = 'tag' | |
| targetParent.children = [] | |
| return targetParent | |
| } | |
| export function semantics(element, targetParent, previousSibling, nextSibling, ancestors) { | |
| // Ignore as default behavior | |
| return targetParent | |
| } | |