notion_to_md 1.0.0 → 1.1.0

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: 924eafad078f99447e1a9d88403d48448e5011c87a9d2ae32b527a9e4a201f85
4
- data.tar.gz: 791bf46ea8cfbb49958cc80862fe63047e1158f4845f21665ce21d20b37628ad
3
+ metadata.gz: edaf453c97dcc2d166335f7179ea81845b44da0991e07b75f2e230288b141655
4
+ data.tar.gz: ff82f6e0a124195467797f10472bb3ce6e7460f43da2a5ff5f55cbdf0ae74cd6
5
5
  SHA512:
6
- metadata.gz: e50e6688db3930ecca7c808d357fe07799465dfa5274a6b0141d97de5adb204f361782240c35152c21165eb8e68cdbf44a04e696006cd345293948825a2a74da
7
- data.tar.gz: 349e89d00109d05b7dfe24499a80dc0318cf6895524e527b025ef02325bc27f06775544f20a995166cef1229b62aacd6344c1331c2c7549eb01f3be5181198cb
6
+ metadata.gz: 9f6c340abef5d82806618e3e4a30abaa320b1bc996760cc0f1a80211277a313009367b7f74c271ff27b668c2fc7402819a87c3c45408a70d41fc515db0afb47c
7
+ data.tar.gz: 764f05022696b17c425784ae8aa7ba7a1648b9fc4172914b21c0c7c7165bbded342596edad993e51ee78ed6e512985a9fa5c21e1b31d0746e5363896c86ee3e7
data/README.md CHANGED
@@ -88,8 +88,9 @@ The supported property types are:
88
88
  * `url`
89
89
  * `email`
90
90
  * `phone_number`
91
+ * `rich_text`, supported but in plain text
91
92
 
92
- `rich_text` as advanced types like `formula`, `relation` and `rollup` are not supported.
93
+ Advanced types like `formula`, `relation` and `rollup` are not supported.
93
94
 
94
95
  Check notion documentation about [property values](https://developers.notion.com/reference/property-value-object#all-property-values) to know more.
95
96
 
@@ -140,6 +140,10 @@ module NotionToMd
140
140
  def url(prop)
141
141
  prop.url
142
142
  end
143
+
144
+ def rich_text(prop)
145
+ prop.rich_text.map(&:plain_text).join
146
+ end
143
147
  end
144
148
  end
145
149
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionToMd
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Arias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-06 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport