markawesome 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/markawesome/transformer.rb +1 -1
- data/lib/markawesome/transformers/popover_transformer.rb +1 -0
- data/lib/markawesome/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ce87485ab7f37e8a96dfabf4d09b95d0fe796cff0ca885eb4aa83a4f013131c
|
|
4
|
+
data.tar.gz: cbe429ce4efdc6227b7f390468496f776d4971d09fb1df4ffc47e1aad22a42f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad056dfdf6b8cf4c4ded5634994bfb131dd77979c1c23fc6e9ae19f38ed344a4488a7cee14f1cfd30d54674545c02390ec3fa9676ffb1f5e9d2ebccfc9fb3f0d
|
|
7
|
+
data.tar.gz: fe3945efdacd009afab96a4a3ba215076c7efd9f5c27f6dea59119b1258b0b85e5e48c17703ef06b3f95b5e6b9b74f345acd331d55c1dcd1c79f75bd27caee12
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.9.4] - 2026-03-13
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Moved PopoverTransformer earlier in the pipeline (right after LayoutTransformer) so that inline popovers (`&&&trigger >>> content&&&`) work inside cards, callouts, details, and other block containers that markdown-process their body content. Previously, Kramdown would HTML-escape the `&&&` and `>>>` characters before PopoverTransformer had a chance to process them.
|
|
12
|
+
|
|
13
|
+
## [0.9.3] - 2026-03-13
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Inline popover content now supports `\n` escape sequences for line breaks — rendered as `<br>` in HTML output. Useful for structured multi-line content in table cells where actual newlines break markdown table syntax.
|
|
18
|
+
|
|
7
19
|
## [0.9.2] - 2026-03-13
|
|
8
20
|
|
|
9
21
|
### Added
|
|
@@ -8,6 +8,7 @@ module Markawesome
|
|
|
8
8
|
class Transformer
|
|
9
9
|
def self.process(content, options = {})
|
|
10
10
|
content = LayoutTransformer.transform(content)
|
|
11
|
+
content = PopoverTransformer.transform(content)
|
|
11
12
|
content = BadgeTransformer.transform(content)
|
|
12
13
|
content = ButtonTransformer.transform(content)
|
|
13
14
|
content = CalloutTransformer.transform(content)
|
|
@@ -24,7 +25,6 @@ module Markawesome
|
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
content = DialogTransformer.transform(content)
|
|
27
|
-
content = PopoverTransformer.transform(content)
|
|
28
28
|
content = IconTransformer.transform(content)
|
|
29
29
|
content = TagTransformer.transform(content)
|
|
30
30
|
TabsTransformer.transform(content)
|
|
@@ -129,6 +129,7 @@ module Markawesome
|
|
|
129
129
|
def build_inline_popover_html(popover_id, trigger_text, content_text, options)
|
|
130
130
|
trigger_content = escape_html(trigger_text)
|
|
131
131
|
content_escaped = escape_html(content_text)
|
|
132
|
+
content_escaped = content_escaped.gsub('\n', '<br>')
|
|
132
133
|
|
|
133
134
|
popover_attrs = ["for='#{popover_id}'"]
|
|
134
135
|
popover_attrs << "placement='#{options[:placement]}'"
|
data/lib/markawesome/version.rb
CHANGED