1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/docs/04-plugins/removeDesc.mdx
2024-06-16 00:10:42 +01:00

19 lines
725 B
Plaintext

---
title: removeDesc
svgo:
pluginId: removeDesc
defaultPlugin: true
parameters:
removeAny:
description: By default, this plugin only removes descriptions that are either empty or contain editor attribution. Enabling this removes the `<desc>` element indiscriminately.
type: boolean
default: false
---
Removes the [`<desc>`](https://developer.mozilla.org/docs/Web/SVG/Element/desc) element from the document in one of the following conditions:
- The `<desc>` element is empty.
- The `<desc>` element appears to only contain editor attribution.
This plugin does not remove the `<desc>` indiscriminately by default, as it is a crucial aspect of accessibility for users of assistive technologies.