Skip to content

Commit

Permalink
docs: minor restructure and rewording (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco authored May 18, 2024
1 parent 07b3dc0 commit bec0cb4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docs/03-plugins/cleanupListOfValues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ svgo:
default: true
---

# Cleanup List of Values

Rounds numeric values in attributes, such as those found in [`viewBox`](https://developer.mozilla.org/docs/Web/SVG/Attribute/viewBox), [`enable-background`](https://developer.mozilla.org/docs/Web/SVG/Attribute/enable-background), and [`points`](https://developer.mozilla.org/docs/Web/SVG/Attribute/points).
4 changes: 1 addition & 3 deletions docs/03-plugins/removeEmptyContainers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ svgo:
defaultPlugin: true
---

Remove container elements in the document that have no children or meaningful attributes.
Remove container elements in the document that have no children or meaningful attributes, excluding the `<svg>` element which is ignored.

A container, as defined in the [SVG specifications](https://www.w3.org/TR/SVG11/intro.html#TermContainerElement), is an SVG element that can have graphical child elements. Container elements include:

Expand All @@ -20,5 +20,3 @@ A container, as defined in the [SVG specifications](https://www.w3.org/TR/SVG11/
- [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg)
- [`<switch>`](https://developer.mozilla.org/docs/Web/SVG/Element/switch)
- [`<symbol>`](https://developer.mozilla.org/docs/Web/SVG/Element/symbol)

Despite the `<svg>` element being a container element, they are not ignored by this plugin.
2 changes: 1 addition & 1 deletion docs/03-plugins/removeXMLNS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It's recommended to use this plugin if you intend to inline SVGs into an HTML do

:::tip

This plugin pairs well with the [removeXlink](/docs/plugins/removeXlink/) plugin. Remove XLink drops XLink namespaces and migrates references to them to the modern equivalent, supported by SVG 2 and inline an HTML document. When using this, it's recommended to enable Remove XLink too.
This plugin pairs well with the [removeXlink](/docs/plugins/removeXlink/) plugin, which drops XLink namespaces and migrates references the modern equivalent, supported by SVG 2 and inline an HTML document. When using removeXMLNS, it's recommended to enable removeXlink too.

:::

Expand Down

0 comments on commit bec0cb4

Please sign in to comment.