List of known MathML tag names.
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Security
- Related
- Contribute
- License
This is a list of MathML tag names. It includes all tag names from MathML 1, MathML 2, and MathML 3. The repo includes scripts to regenerate the data from the specs.
You can use this package when you need to know what tag names are allowed in any version of MathML.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install mathml-tag-names
In Deno with esm.sh
:
import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@3'
In browsers with esm.sh
:
<script type="module">
import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@3?bundle'
</script>
import {mathmlTagNames} from 'mathml-tag-names'
console.log(mathmlTagNames.length) // => 189
console.log(mathmlTagNames.slice(0, 10))
Yields:
[
'abs',
'and',
'annotation',
'annotation-xml',
'apply',
'approx',
'arccos',
'arccosh',
'arccot',
'arccoth'
]
This package exports the identifier mathmlTagNames
.
There is no default export.
List of known (lowercase) MathML tag names (Array<string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/html-tag-names
— list of HTML tag nameswooorm/svg-tag-names
— list of SVG tag nameswooorm/svg-element-attributes
— map of SVG elements to attributeswooorm/html-element-attributes
— map of HTML elements to attributeswooorm/aria-attributes
— list of ARIA attributes
Yes please! See How to Contribute to Open Source.