diff --git a/CHANGELOG.md b/CHANGELOG.md index a9c8160..2858bcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.2] - 2026-05-08 + +### Added +- `data-markdown-ignore` boolean attribute to exclude any HTML element (and its children) from Markdown output + ## [0.1.1] - 2026-04-30 ### Fixed @@ -21,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support for `Accept: text/markdown` header and `.md` URL suffix - Rails 6.1+ and Ruby 3.0+ compatibility -[Unreleased]: https://github.com/paultursuru/mark-don/compare/v0.1.1...HEAD +[Unreleased]: https://github.com/paultursuru/mark-don/compare/v0.1.2...HEAD +[0.1.2]: https://github.com/paultursuru/mark-don/compare/v0.1.1...v0.1.2 [0.1.1]: https://github.com/paultursuru/mark-don/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/paultursuru/mark-don/releases/tag/v0.1.0 diff --git a/Gemfile.lock b/Gemfile.lock index 8720c3e..247aa62 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - mark-don (0.1.1) + mark-don (0.1.2) nokogiri (>= 1.13) rails (>= 6.1) reverse_markdown (~> 2.1) @@ -290,7 +290,7 @@ CHECKSUMS loofah (2.25.1) sha256=d436c73dbd0c1147b16c4a41db097942d217303e1f7728704b37e4df9f6d2e04 mail (2.9.0) sha256=6fa6673ecd71c60c2d996260f9ee3dd387d4673b8169b502134659ece6d34941 marcel (1.1.0) sha256=fdcfcfa33cc52e93c4308d40e4090a5d4ea279e160a7f6af988260fa970e0bee - mark-don (0.1.1) + mark-don (0.1.2) matrix (0.4.3) sha256=a0d5ab7ddcc1973ff690ab361b67f359acbb16958d1dc072b8b956a286564c5b mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1 diff --git a/README.md b/README.md index 3fc4aac..1602cff 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,22 @@ This is a **great** room with a [nice view](/view). - Breakfast at 8am ``` +### Excluding elements + +Add `data-markdown-ignore` to any HTML element to exclude it and its children from the Markdown output: + +```erb + + +

My Room

+

Visible content.

+``` + +The `