mirror-rhinstaller-node-cache/mathml-tag-names
2026-09-23 15:43:33 +00:00
..
index.d.ts 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00
index.d.ts.map 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00
index.js 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00
license 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00
package.json 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00
readme.md 599101c2959ea504d8e9185b484074f77867d03949caa8f1d6b61909f57eba72 package.json 2026-09-23 15:43:33 +00:00

mathml-tag-names

Build Coverage Downloads Size

List of known MathML tag names.

Contents

What is this?

This is a list of MathML tag names. It includes all tag names from MathML 1, MathML 2, MathML 3, and MathML 4. The repo includes scripts to regenerate the data from the specs.

When should I use this?

You can use this package when you need to know what tag names are allowed in any version of MathML.

Install

This package is ESM only. In Node.js (version 16+), install with npm:

npm install mathml-tag-names

In Deno with esm.sh:

import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@4'

In browsers with esm.sh:

<script type="module">
  import {mathmlTagNames} from 'https://esm.sh/mathml-tag-names@4?bundle'
</script>

Use

import {mathmlTagNames} from 'mathml-tag-names'

console.log(mathmlTagNames.length) // => 201

console.log(mathmlTagNames.slice(0, 10))

Yields:

[
  'abs',
  'and',
  'annotation',
  'annotation-xml',
  'apply',
  'approx',
  'arccos',
  'arccosh',
  'arccot',
  'arccoth'
]

API

This package exports the identifier mathmlTagNames. There is no default export.

mathmlTagNames

List of known (lowercase) MathML tag names (ReadonlyArray<string>).

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 16+. It also works in Deno and modern browsers.

Security

This package is safe.

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer