jekyll-embed-urls 0.5.9 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/embed/content.rb +1 -1
- data/lib/jekyll/embed.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d7cd1080bdb9a0e1aa58e6c296c9bf636205b43d9d681869f9bccffcfac20d
|
4
|
+
data.tar.gz: a002d3bc62adbf3c08855f2eb2fa57ae04839b281f682fd54407498d1a7be027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 735f828c5920822d1771aa09854669c4d5ed3324c3121c9d98e3ca69c9b4e815e22f929f6dc34d8bca673334e274f786bc096d3f220411fa522da677f1ae1b06
|
7
|
+
data.tar.gz: 4f0eac0ce78f62d5b84b1fc4d3fd6c9e28d35875d3a4255c70a7955c9fd484524a4a4fd0e984cca8877bedf5f25b707f429fa11c0c0b235adbad9d6ad787a369
|
data/lib/jekyll/embed/content.rb
CHANGED
@@ -15,7 +15,7 @@ module Jekyll
|
|
15
15
|
def embed(content)
|
16
16
|
Nokogiri::HTML5.fragment(content).tap do |html|
|
17
17
|
html.css('p > a:first-of-type').each do |a|
|
18
|
-
next
|
18
|
+
next unless a.parent.children.last == a
|
19
19
|
|
20
20
|
url = a['href']
|
21
21
|
embed = Jekyll::Embed.embed url
|
data/lib/jekyll/embed.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-embed-urls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|