mato 2.3.0 → 2.3.1

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: f7985e295c016bbc58c5cc8accc3c81e33e8351a13ed23e9ccc9bb55fe083a01
4
- data.tar.gz: d18bb43005111174d922335385453ae4779d449a6efe75431693930fc72309f9
3
+ metadata.gz: 59902decca423364fc185eef127151622e9348e7ce4ed5a90bab8ca1d44dfbf3
4
+ data.tar.gz: bd618687101adb2f9f9e1d6a4ac5a25baafa44018fa7bff2869e19703ec0375d
5
5
  SHA512:
6
- metadata.gz: '08a8c3e69c1af3426109ff111846d3eba57fd91ff3095a606b9c3bae412b7b8947782017143dd894d161872b2907f3084611fe8bfb27e8e900f392bb321e09f5'
7
- data.tar.gz: a4dc40fb37b6db9c12e5011e9ea3391d155e78ecbd922d6021a73d2d00ccdb7bc56708e2a17f972d604674accec01ad792f7535abfb385caceb192997179663f
6
+ metadata.gz: 25752490aeb9a2a7d7926a8037dac4138836b5c2582dbe3894e5761566cc9c60c15e14f9ed70a457d78dc96346961d9d795c188671c7055bfc612d596c5163a3
7
+ data.tar.gz: 8eb1dd626ad5147fb8e1d0050a3650a1207860227cc4f88a79220a87a68f8040e9bf0c5be890b5af248fe5542b2c55b04b06c1357e098cfab1cb409903c48559
@@ -1,5 +1,9 @@
1
1
  # The revision history of Mato
2
2
 
3
+ ## v2.3.1 - 2020/07/15
4
+
5
+ * Allow loose task list. [#24](https://github.com/bitjourney/mato/pull/24)
6
+
3
7
  ## v2.3.0 - 2020/06/16
4
8
 
5
9
  * Add `convert_empty_task_list` option to TaskList filter to convert task list event if the text is empty. [#23](https://github.com/bitjourney/mato/pull/23)
@@ -26,7 +26,7 @@ module Mato
26
26
 
27
27
  # @param [Nokogiri::XML::Node] li
28
28
  def weave(li)
29
- text_node = li.xpath('.//text()').first
29
+ text_node = li.xpath('./p[1]/text()').first || li.xpath('.//text()').first
30
30
  checked = has_checked_mark?(text_node)
31
31
  unchecked = has_unchecked_mark?(text_node)
32
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mato
4
- VERSION = "2.3.0"
4
+ VERSION = "2.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mato
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUJI Goro
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commonmarker
@@ -98,7 +98,7 @@ metadata:
98
98
  source_code_uri: https://github.com/bitjourney/mato
99
99
  changelog_uri: https://github.com/bitjourney/mato/blob/master/CHANGELOG.md
100
100
  bug_tracker_uri: https://github.com/bitjourney/mato/issues
101
- post_install_message:
101
+ post_install_message:
102
102
  rdoc_options: []
103
103
  require_paths:
104
104
  - lib
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubygems_version: 3.2.0.pre1
117
- signing_key:
117
+ signing_key:
118
118
  specification_version: 4
119
119
  summary: MArkdown TOolkit
120
120
  test_files: []