prose_mirror_ruby 0.1.7 → 0.1.8

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: 712eb9a3c07388a0e452db157d328810bdcf6ba1b8c981a7c4eb5003970cc219
4
- data.tar.gz: a587600cac0912ad5c8c9e4de877fb712d2a07db8feddacd398316643f058da6
3
+ metadata.gz: 5fea957f77d055100350c126b812ef21b534d382f559173f3126ff010a9e9e0c
4
+ data.tar.gz: 8f66d489ca827eedd75fd9beccef1350ef9254c72ff6e7ebc38679ca3d4ff382
5
5
  SHA512:
6
- metadata.gz: ee856c284a5d4fad868f56703db77cbd96d2637aa68463bd8749eebbb56b3c5ecf173d7bc8a6895f87e6f756942004e55366f6e9ca43c0c0072dc867d3f176f2
7
- data.tar.gz: 27d75931228ac3bd915d36a24450dab68e108e02276ff68041465acb9f7f07ac51a65059bfbb374f69626fc76ee0d7161750ca7cb5b9fa18c5696e8458b66388
6
+ metadata.gz: b02a3a7dd4de879c018af0f998ef72b9e05139d4331a910dc62e449fb68d60ba752a68f9e9d6336c15ed32835c12c81ed922aa742787174b5e092a4c146b9066
7
+ data.tar.gz: 129e625f31c0e9d02ab7c21423154461731a1c51e4c651b5045536c227a5f9c5fc3829a0ea5a4a998c268821cc7d0874ef20a6c3300c998658e653c09b3948a0
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.8] - 2024-06-12
9
+
10
+ ### Changed
11
+ - Minor improvements and bug fixes
12
+
8
13
  ## [0.1.7] - 2024-03-19
9
14
 
10
15
  ### Added
@@ -35,7 +35,8 @@ module ProseMirror
35
35
  },
36
36
 
37
37
  heading: ->(state, node, parent = nil, index = nil) {
38
- state.write(state.repeat("#", node.attrs[:level]) + " ")
38
+ level = node.attrs[:level].to_i.clamp(1, 6)
39
+ state.write(state.repeat("#", level) + " ")
39
40
  state.render_inline(node, false)
40
41
  state.close_block(node)
41
42
  },
@@ -654,7 +655,7 @@ module ProseMirror
654
655
 
655
656
  # Repeat a string n times
656
657
  def repeat(str, n)
657
- str * n
658
+ str * n.to_i
658
659
  end
659
660
  end
660
661
  end
@@ -1,3 +1,3 @@
1
1
  module ProseMirror
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prose_mirror_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Ross