kramdown-prismic 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 5465bc67c1f2cc29208888f196e1a2eb3b67abf6
4
- data.tar.gz: 421a8ce16fea41e776293fa57bdaf39ea3f029a8
3
+ metadata.gz: 13cce49c2e7957ffcd0c71c62f18faff08817a27
4
+ data.tar.gz: c637b24628b1c21d3b420e77b2468f3d257b38cc
5
5
  SHA512:
6
- metadata.gz: bd90c77232680328ee30a3a08a3b7b434cf69255de143dfa40c4ff0e44beb4c5345b5c65dca726771596b5697eeb9dbca3bab17253d77d456133e2e34a18ed85
7
- data.tar.gz: b75ef505d3fb1f7b4cb389cf7a026b45babb98b0322ee6d626b4a81da06b17206db48fde683b916affc4e64fc24ef6cd07802ec531f7ceba8f93b9cbd41ba5c6
6
+ metadata.gz: fa1db25fb05c4fd1cc55d67b47db51bad9405a1dc22e215a8d749f8588b60b3c663b5d3e850b319261c284cfb9242dcbbbb9cb909ad98ec4f1d294bc0f4b5dfd
7
+ data.tar.gz: 6033c3434686ec767e255cb9aaa925abe5fc9587e00a344c6bc6fdc641dc1a86616777aeb60303228f0d79c5504955ba0377861329f305246b927750fa539edc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kramdown-prismic (0.0.3)
4
+ kramdown-prismic (0.0.4)
5
5
  kramdown (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module KramdownPrismic
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -116,6 +116,11 @@ module Kramdown
116
116
  }
117
117
  end
118
118
 
119
+ def convert_html_element(element)
120
+ warning('translating html elements is not supported')
121
+ nil
122
+ end
123
+
119
124
  def extract_content(element, memo={text: '', spans: []})
120
125
  element.children.inject(memo) do |memo2, child|
121
126
  send("extract_span_#{child.type}", child, memo2)
@@ -357,6 +357,14 @@ class KramdownPrismicTest < Minitest::Test
357
357
  assert_equal expected, Kramdown::Document.new(html, input: :html).to_prismic
358
358
  end
359
359
 
360
+ def test_convert_html
361
+ expected = []
362
+ html = "<div></div>"
363
+ doc = Kramdown::Document.new(html, input: :markdown)
364
+ assert_equal expected, doc.to_prismic
365
+ assert_equal 1, doc.warnings.size
366
+ end
367
+
360
368
  def test_convert_span_html
361
369
  expected = [
362
370
  {type: "paragraph",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-prismic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - François de Metz