markawesome 0.9.1 → 0.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f905b53dab8aa3e46a07e23a535027fdc95f290fa195ed7bc7e3700cb5b28434
4
- data.tar.gz: 858f36fb5b797fddb06d9ce73b586a67088b9c41d48f58dd3e5755c537e7f6dc
3
+ metadata.gz: 20d0c286b0e4f28b245d541359c98b945881bafe440ec5e595102c125cb59493
4
+ data.tar.gz: 774a091780c653c76d111dde625ef89b2db808119bcf72be8cb30140fd2288aa
5
5
  SHA512:
6
- metadata.gz: 33be24fab1f053e5c26f854d748c59b324b9c02e08a61622d89cd57674551865de9497cc67e8ecb736c04f999cb1ae6cde3924ff0a2f14e265565d2fe5e5cb46
7
- data.tar.gz: fff7882f369664e224277d97599311e19c17c3308eb02dff69ade5b945b01cf5bca0d4ab1f0ccffe389ca939c8efc8e9595632121bf3efcaecfd8b80cbe4f5fa
6
+ metadata.gz: bbb4bb808ef77a6f2b16cc8d10451c95d9bdf8f4a5d1e43f93a5743887c626a604fe60b8769fa4a44c18f6c2744167efdbf9736239682ba6a2065b7797a936fe
7
+ data.tar.gz: bb55942503875f00151316b6d309ad2fc88407f31de4bcb4da6b5da069b1f961d78a47764916f55c8419a8b85b640732079153350b4ecc5389455fd7305d0d3c
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.3] - 2026-03-13
8
+
9
+ ### Added
10
+
11
+ - 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.
12
+
13
+ ## [0.9.2] - 2026-03-13
14
+
15
+ ### Added
16
+
17
+ - Link-style popover triggers now include a `ma-popover-trigger` CSS class for easier styling overrides in consumer projects
18
+
7
19
  ## [0.9.1] - 2026-03-12
8
20
 
9
21
  ### Changed
@@ -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]}'"
@@ -166,7 +167,7 @@ module Markawesome
166
167
  'color: inherit; text-decoration: underline; ' \
167
168
  'text-decoration-style: dotted; ' \
168
169
  'cursor: pointer; font: inherit;'
169
- "<button id='#{popover_id}' style='#{link_style_attr}'>#{trigger_content}</button>"
170
+ "<button id='#{popover_id}' class='ma-popover-trigger' style='#{link_style_attr}'>#{trigger_content}</button>"
170
171
  else
171
172
  "<wa-button id='#{popover_id}' variant='text'>#{trigger_content}</wa-button>"
172
173
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Markawesome
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markawesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janne Waren