govspeak 8.8.1 → 8.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77012b9aaad70ab1e2c046807f669753212dc5e9eab6ba86f0eb82ae9bccbda1
4
- data.tar.gz: 604dc9f1d19d98a87529b3fc4de29975d6f1da815eea65f029c9e9bce67dc2a3
3
+ metadata.gz: f929dc2d9957b06b36fc1941ae11605f09098c1ef11b1227d559b30299b3fd62
4
+ data.tar.gz: 3ebacc1320ce6193838c6bbbdf9b603c6e6e7841756c93d8687e0d7e78d5c61b
5
5
  SHA512:
6
- metadata.gz: '029963acda1b0b3ae8fc345bc6ec22494fd1910858f17935fb2d2e1dd370701becaa328517e3557667e83adeb3ea152b4b194d359426781f5c3edd376823efba'
7
- data.tar.gz: e575e5c1bf1e8d68bec490f691b6857a3154b1ebdcf5e514edc8e3f4edda60f3e5a905012f252b01394e69e33d8fc64ced5da786436e24753e494fb8459761a7
6
+ metadata.gz: a355ac1c32bde4b90a8d9e172291beae3d46e3dce2dace5e39757dc89aaeaf0fa7f4a8d045a3b805475e83eaa5ebc6f66de9f58ef5d58d3cd6e2221daf85c91f
7
+ data.tar.gz: 15a7d19da7f282041a2c3c716cfb523ebe2bef04fed831a1c863c3e6a1b7098adc5c365fe0f5fac46f68b27b6217961cbb5192fb554ef0d8af5893109c6a1bea
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.8.2
4
+
5
+ * Fix a bug where headings were no longer rendering inside example boxes ([#374](https://github.com/alphagov/govspeak/pull/374))
6
+
3
7
  ## 8.8.1
4
8
 
5
9
  * Update dependencies
@@ -1,3 +1,3 @@
1
1
  module Govspeak
2
- VERSION = "8.8.1".freeze
2
+ VERSION = "8.8.2".freeze
3
3
  end
data/lib/govspeak.rb CHANGED
@@ -296,7 +296,7 @@ module Govspeak
296
296
  extension("example", surrounded_by("$E")) do |body|
297
297
  <<~BODY
298
298
  <div class="example" markdown="1">
299
- #{body.strip.gsub(/\A^\|/, "\n|").gsub(/\|$\Z/, "|\n")}
299
+ #{body.strip.gsub(/\A^\|/, "\n|").gsub(/\|$\Z/, "|\n")}
300
300
  </div>
301
301
  BODY
302
302
  end
@@ -1334,6 +1334,22 @@ Teston
1334
1334
  </div>)
1335
1335
  end
1336
1336
 
1337
+ test_given_govspeak "
1338
+ $E
1339
+
1340
+ ### A heading within an example
1341
+
1342
+ Some example content
1343
+
1344
+ $E" do
1345
+ assert_html_output %(
1346
+ <div class="example">
1347
+ <h3 id="a-heading-within-an-example">A heading within an example</h3>
1348
+
1349
+ <p>Some example content</p>
1350
+ </div>)
1351
+ end
1352
+
1337
1353
  test_given_govspeak "
1338
1354
  $LegislativeList
1339
1355
  * 1. Item 1[^1] with an ACRONYM
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govspeak
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.8.1
4
+ version: 8.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-12-23 00:00:00.000000000 Z
10
+ date: 2024-12-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: actionview
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  requirements: []
345
- rubygems_version: 3.6.1
345
+ rubygems_version: 3.6.2
346
346
  specification_version: 4
347
347
  summary: Markup language for single domain
348
348
  test_files: