Releases: chrisweb/rehype-github-alerts
Releases · chrisweb/rehype-github-alerts
v4.0.0-beta.1
- please check out the beta release notes for more info
Full Changelog: 3.0.0...4.0.0-beta.1
v3.0.0
- This version improves DX by building alerts no matter if the first line ends with two spaces or not (the two spaces were mandatory before), but due to this ticket #4 I decided to make them optional, two spaces at the end are still a good pratice as it will speed up parsing, also installing remark-breaks next to this plugin is still highly recommended if you want to mimick githubs behavior regarding line breaks (inside of alerts)
- Improved documentation in main Readme regarding line breaks and paragraphs (regular markdown syntax or install remark-breaks to fully mimick GitHub behavioe)
v2.0.0
rehype github alerts v2.0.0
v2 is available on npmjs
- fixed a bug #3: when content of the alert contains other markdown then paragraphs, like a list or an image
- in an update on 14 November 2023 GitHub turned off support for the legacy syntax, this is why this plugin now has legacy support turned off by default
- in the update from 14 November 2023 GitHub also added two new alert types, Tip and Caution, I added supported for these two alerts too
- added a test suite for most common cases, need more tests to reach 100% coverage, but currently at 90+%
- replaced the previous icons source with 5 icons from https://icons.getbootstrap.com/, license is in NOTICE.md (icons license is MIT)