diff --git a/README.md b/README.md index 0b574ad23..0a5db3159 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Over 2700 Free SVG icons for popular brands. See them all on one page at **Note**\ +> [!NOTE]\ > We ask that all users read our [legal disclaimer](https://github.com/simple-icons/simple-icons/blob/develop/DISCLAIMER.md) before using icons from Simple Icons. ### General Usage @@ -179,7 +179,7 @@ echo file_get_contents('path/to/package/icons/simpleicons.svg'); | [Vue package](https://github.com/mainvest/vue-simple-icons) Vue | [@noahlitvin](https://github.com/noahlitvin) | ![](https://img.shields.io/github/license/mainvest/vue-simple-icons) | ![](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmainvest%2Fvue-simple-icons%2Fmaster%2Fpackage.json&query=%24.version&logo=simpleicons&label=version) | | [WordPress plugin](https://wordpress.org/plugins/simple-icons/) WordPress | [@tjtaylo](https://github.com/tjtaylo) | ![](https://img.shields.io/badge/license-GPL_v2-blue.svg) | [![v4.25.0](https://img.shields.io/static/v1?label=version&message=v4.25.0&logo=simpleicons&color=red)](https://github.com/simple-icons/simple-icons/tree/4.25.0) | -> **Note for Extension Authors**\ +> [!IMPORTANT]\ > From our next major release (v11, releasing on May 26, 2024), we will begin removing third-party extensions from the above list that are not up to date with at least our previous major release.\ > For example, when v11 is released, we will remove any extensions that don't support `v10.0.0` or higher.\ > Please create a PR to update the version number of your extension in this README following each update of your extension. diff --git a/scripts/release/reformat-readme.js b/scripts/release/reformat-readme.js index 643ecb3f5..6d19aac11 100644 --- a/scripts/release/reformat-readme.js +++ b/scripts/release/reformat-readme.js @@ -17,8 +17,17 @@ const readmeFile = path.resolve(rootDir, 'README.md'); const readme = await readFile(readmeFile, 'utf8'); await writeFile( readmeFile, - readme.replace( - /https:\/\/cdn.simpleicons.org\/(.+)\/000\/fff/g, - `https://raw.githubusercontent.com/simple-icons/simple-icons/${LINKS_BRANCH}/icons/$1.svg`, - ), + readme + .replace( + /https:\/\/cdn.simpleicons.org\/(.+)\/000\/fff/g, + `https://raw.githubusercontent.com/simple-icons/simple-icons/${LINKS_BRANCH}/icons/$1.svg`, + ) + .replace( + /\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?!\()/g, + function (str, $0) { + const capital = $0.substr(0, 1); + const body = $0.substr(1).toLowerCase(); + return `**${capital + body}**`; + }, + ), );