diff --git a/lib/kramdown/converter/prismic.rb b/lib/kramdown/converter/prismic.rb index f4cb0c3..2426cd9 100644 --- a/lib/kramdown/converter/prismic.rb +++ b/lib/kramdown/converter/prismic.rb @@ -173,14 +173,14 @@ def convert_sub_html_element(element, type) def convert_html_element(element) if element.value == 'iframe' { + type: 'embed', + data: { + embed_url: element.attr['src'], + type: 'video' + }, content: { spans: [], text: '' - }, - type: 'embed', - data: { - embed_url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ', - type: 'link' } } else