mirror of
https://github.com/svg/svgo.git
synced 2026-01-27 07:02:06 +03:00
19 lines
725 B
Plaintext
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.
|