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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/govspeak/version.rb +1 -1
- data/lib/govspeak.rb +1 -1
- data/test/govspeak_test.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f929dc2d9957b06b36fc1941ae11605f09098c1ef11b1227d559b30299b3fd62
|
4
|
+
data.tar.gz: 3ebacc1320ce6193838c6bbbdf9b603c6e6e7841756c93d8687e0d7e78d5c61b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a355ac1c32bde4b90a8d9e172291beae3d46e3dce2dace5e39757dc89aaeaf0fa7f4a8d045a3b805475e83eaa5ebc6f66de9f58ef5d58d3cd6e2221daf85c91f
|
7
|
+
data.tar.gz: 15a7d19da7f282041a2c3c716cfb523ebe2bef04fed831a1c863c3e6a1b7098adc5c365fe0f5fac46f68b27b6217961cbb5192fb554ef0d8af5893109c6a1bea
|
data/CHANGELOG.md
CHANGED
data/lib/govspeak/version.rb
CHANGED
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
|
-
|
299
|
+
#{body.strip.gsub(/\A^\|/, "\n|").gsub(/\|$\Z/, "|\n")}
|
300
300
|
</div>
|
301
301
|
BODY
|
302
302
|
end
|
data/test/govspeak_test.rb
CHANGED
@@ -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.
|
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-
|
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.
|
345
|
+
rubygems_version: 3.6.2
|
346
346
|
specification_version: 4
|
347
347
|
summary: Markup language for single domain
|
348
348
|
test_files:
|