redcarpet_yt 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 0fed2a89fd3682440166ee1effd51ddbcdc59c5a
4
- data.tar.gz: 7a50e3a5b3d7f0fdb5e2e91d71185c5f6d65d7bd
3
+ metadata.gz: ed99b887e119cb0bc44647f9ebe3febbf96daa64
4
+ data.tar.gz: 276055f277e7f9da92f047f5cf93ed843da60337
5
5
  SHA512:
6
- metadata.gz: 4de7649c77c0e86245bb2339f415b1cc9e4d85698ea69f57638df382a9346c38a73bd9a97d023efce3243608fc224642a11b35108ce97ae03c94499c15835a40
7
- data.tar.gz: 18433a3d7c0135b6110e08e1ca8c187e6baafc93180e70873d1453a6e74a5165242dfeed0c51be1f9809815a80119bed7acce3102636365d43a32416376fe0a2
6
+ metadata.gz: b40fe13e3233ef49f5e1a4be2625763649b1a43ce4634f5eaca84f576dae4e9a3876a742ff511e6a2319fbb12ce8dfcac53f4ef200bcdf19823fbcbd83fa80f5
7
+ data.tar.gz: f939d90b030264d3c26d6249c9094bc014cc7224ad2bf86ca6d728ea0b30909853f7deded767da8049fdfb2594aace468c077f43200e7e46d9f7464b96d0fcac
data/lib/redcarpet_yt.rb CHANGED
@@ -15,7 +15,7 @@ module Redcarpet
15
15
  # Check if we have a YouTube video
16
16
  if link.match /((http(s)?:\/\/)?)(www\.)?((youtube\.com\/)|(youtu.be\/))[\S]+/
17
17
  id = get_youtube_video_id(link)
18
- '<iframe width="420" height="315" margin-left="auto" margin-right="auto" src="//www.youtube.com/embed/'+id+'" frameborder="0" allowfullscreen></iframe>'
18
+ '</p><iframe width="420" height="315" margin-left="auto" margin-right="auto" src="//www.youtube.com/embed/'+id+'" frameborder="0" allowfullscreen></iframe><p>'
19
19
  else
20
20
  '<img src="'+link+'" title="'+title+'" alt="'+content+'">'
21
21
  end
data/redcarpet_yt.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'redcarpet_yt'
4
- s.version = '0.0.5'
4
+ s.version = '0.0.6'
5
5
  s.summary = "Markdown that smells nice, now with YouTube embedding"
6
6
  s.description = 'A fast, safe and extensible Markdown to (X)HTML parser, with YouTube embedding, based on Redcarpet'
7
7
  s.date = '2016-03-31'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcarpet_yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natacha Porté