# posthtml-rename-id [PostHTML](https://github.com/posthtml/posthtml) plugin to rename id attributes and it's references. Inspired by [grunt-svgstore](https://github.com/FWeinb/grunt-svgstore). Handle following cases: - `href="#id"` and `xlink:href="#id"` - `style` attribute values like `style="fill: url(#id)"` - `
``` Output ```html ``` ## Install ```sh npm install posthtml-rename-id ``` ## Usage ```js const posthtml = require('posthtml'); const rename = require('posthtml-rename-id'); posthtml() .use(rename('prefix_[id]')) .process(' ') .then(({ html }) => { console.log(html); // }); ``` ## Configuration ### `pattern` > Type: `string | function`