docusaurus/packages/docusaurus-utils
Erick Zhao 0c6165b161
fix(utils): make SVGO not remove title (#6684)
* chore(utils): add `removeTitle: false` to svg loader

By default, SVGR removes the `<title>` tag from SVG inputs.
This hinders a11y since "the `<title>` element provides an
accessible, short-text description of any SVG container
element or graphics element".

Modern browsers also show tooltips on hover for inline
SVG with the `<title>` tag.

See https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title

* fix test
2022-02-15 17:14:54 +08:00
..
src fix(utils): make SVGO not remove title (#6684) 2022-02-15 17:14:54 +08:00
.npmignore misc: convert all internal scripts to ESM (#6286) 2022-01-08 12:59:28 +08:00
package.json chore: upgrade dependencies (#6660) 2022-02-12 15:29:40 +08:00
README.md fix(v2): sitemap plugin should handle siteConfig.trailingSlash automatically (#4950) 2021-06-14 20:04:39 +02:00
tsconfig.json misc: ignore some files during npm publish (#6092) 2021-12-17 11:38:26 +01:00

@docusaurus/utils

Node utility functions for Docusaurus packages.