notion_to_md 2.2.2 → 2.2.4

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: 2afa81a1825a9ebf8efaa1759908803baa3e556fabeccd464d75be001016fd05
4
- data.tar.gz: 7d72ae2095612e43e54147d8c23d6d8eb7f4d7c3c4dec0e5ce3e91d311c31347
3
+ metadata.gz: 1fb7426b97e6a8fdd9cd27cd1254939c5ccd3cb3455920ff35071d5c3429a4f1
4
+ data.tar.gz: 523b5ff29517de54208a7506970115f11d087c9bb314e4b0a626650760ec89f3
5
5
  SHA512:
6
- metadata.gz: 246785dfc4372f8ac87f1e51c955402f297293ff2092ce19d4fed7a8ba57664d10ad8b87f62d5252ce05842d7a660633aff9593b7b0335271503a2ccc04c748e
7
- data.tar.gz: 52765f8dbcaa3e81064aa29111f2d13957f1eee7ba638f301e44776e21088b4311ed45a2db5e97b6f3c1e7684384b963e45f6d7a2de15575ca0f4639ea5eaa2f
6
+ metadata.gz: f9f181ba6bdbece59d9f8f5ad81c05afe86e942fcca913674ca42f04876a158091e8dc21b4eb392d9226c8839a8eea021c223a9d40c681093c9a16f153ec9793
7
+ data.tar.gz: 4999b3781d9bf53357f8e5f8585beef8c4c3b501c6b35d360f2593b8596ae5b615979bb20246b2aee911342f5d97824a0c1da882c8d54a544fc14c1e0e61dbb1
@@ -25,7 +25,7 @@ module NotionToMd
25
25
  def callout(block)
26
26
  icon = get_icon(block[:icon])
27
27
  text = convert_text(block)
28
- "#{icon} #{text}"
28
+ "> #{icon} #{text}"
29
29
  end
30
30
 
31
31
  def quote(block)
@@ -10,7 +10,8 @@ module NotionToMd
10
10
  end
11
11
 
12
12
  def title
13
- page.dig(:properties, :Name, :title).inject('') do |acc, slug|
13
+ title_list = page.dig(:properties, :Name, :title) || page.dig(:properties, :title, :title)
14
+ title_list.inject('') do |acc, slug|
14
15
  acc + slug[:plain_text]
15
16
  end
16
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionToMd
4
- VERSION = '2.2.2'
4
+ VERSION = '2.2.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion_to_md
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Arias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport