jekyll-pdf-embed 1.1.2.1 → 1.1.3

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
  SHA256:
3
- metadata.gz: 6d06b611d6f7cf682294c57fee183629534b4370cdb0f00abcf51c8e582c7686
4
- data.tar.gz: d6f9de223e5598cca77006411dafd94116a6430f7ff7346cb981a962d61e9597
3
+ metadata.gz: 502ec8a65a422d04ffc1f3da00fdc76f1c2ac823874da6c4eb2d0930cef2a282
4
+ data.tar.gz: 2c3d681e6d013757c47b33be5d83b1ea5723bfc6f8e020acc1101ce4c1236b60
5
5
  SHA512:
6
- metadata.gz: b70f37431269b124c2889f24989128114c59582721902e56e45a58aac6ae09585a46e59da9963c57de0909e4b63daa0ec4095ff60bac2e9141b18db6f61fa25c
7
- data.tar.gz: 5abe32bb2cd60e71f5aa9d0e8fcc7a02d0a6aebc41e19b79647a47c91fe8fe4a8215e0e98a35beb4ce50b6608cee8e0b6c3f3b141b92dd639b668f2f40de6205
6
+ metadata.gz: 20472200c186b2da24b421c4a41ec639d32c46351beb4dbd7f2726a36b2c4feafad243231eb60975a1eb8aab720b46615c055445f0ad3730dad0639e8807bc56
7
+ data.tar.gz: 85c83569831f49db1a20d9dad83fb9b21e19b7d1dc01a215045ddaefe6764c0a65e5e4c607684dd4c97f4b409c556c69fc02d4a21b54ae2da17cfc27888864e7
@@ -68,9 +68,59 @@ class JekyllPDFEmbed < Liquid::Tag
68
68
  end
69
69
 
70
70
  if @no_link
71
- %Q(<style> .pdf-embed-wrap-#{@uuid} { display:flex; flex-direction: column; width: #{@width}; height: #{@height}; } .pdf-embed-container-#{@uuid} { height: 100%; } .pdf-embed-container-#{@uuid} iframe { width: 100%; height: 100%; } </style> <div class="pdf-embed-wrap-#{@uuid}"> <div class="pdf-embed-container-#{@uuid}"> <iframe src="#{@link}" frameborder="0" allowfullscreen></iframe> </div> </div>)
71
+ %(
72
+ <style>
73
+ .pdf-embed-wrap-#{@uuid} {
74
+ display: flex;
75
+ flex-direction: column;
76
+ width: #{@width};
77
+ height: #{@height};
78
+ }
79
+ .pdf-embed-container-#{@uuid} {
80
+ height: 100%;
81
+ }
82
+ .pdf-embed-container-#{@uuid} iframe {
83
+ width: 100%;
84
+ height: 100%;
85
+ }
86
+ </style>
87
+ <div class="pdf-embed-wrap-#{@uuid}">
88
+ <div class="pdf-embed-container-#{@uuid}">
89
+ <iframe src="#{@link}" frameborder="0" allowfullscreen></iframe>
90
+ </div>
91
+ </div>
92
+ ).gsub(/\n+/, '').gsub(/\s+/, ' ').lstrip.chop.strip
72
93
  else
73
- %Q(<style> .pdf-embed-wrap-#{@uuid} { display:flex; flex-direction: column; width: #{@width}; height: #{@height}; } .pdf-embed-container-#{@uuid} { height: 100%; } .pdf-link-#{@uuid} { background-color: white; text-align: center; border-style: solid; } .pdf-embed-container-#{@uuid} iframe { width: 100%; height: 100%; } </style> <div class="pdf-embed-wrap-#{@uuid}"> <div class="pdf-link-#{@uuid}"> <a href="#{@link}" target="_blank">#{@label}</a> </div> <div class="pdf-embed-container-#{@uuid}"> <iframe src="#{@link}" frameborder="0" allowfullscreen></iframe> </div> </div>)
94
+ %(
95
+ <style>
96
+ .pdf-embed-wrap-#{@uuid} {
97
+ display: flex;
98
+ flex-direction: column;
99
+ width: #{@width};
100
+ height: #{@height};
101
+ }
102
+ .pdf-embed-container-#{@uuid} {
103
+ height: 100%;
104
+ }
105
+ .pdf-link-#{@uuid} {
106
+ background-color: white;
107
+ text-align: center;
108
+ border-style: solid;
109
+ }
110
+ .pdf-embed-container-#{@uuid} iframe {
111
+ width: 100%;
112
+ height: 100%;
113
+ }
114
+ </style>
115
+ <div class="pdf-embed-wrap-#{@uuid}">
116
+ <div class="pdf-link-#{@uuid}">
117
+ <a href="#{@link}" target="_blank">#{@label}</a>
118
+ </div>
119
+ <div class="pdf-embed-container-#{@uuid}">
120
+ <iframe src="#{@link}" frameborder="0" allowfullscreen></iframe>
121
+ </div>
122
+ </div>
123
+ ).gsub(/\n+/, '').gsub(/\s+/, ' ').lstrip.chop.strip
74
124
  end
75
125
  end
76
126
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module JekyllPDFEmbed
5
- VERSION = '1.1.2.1'
5
+ VERSION = '1.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-pdf-embed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mihajlo Nesic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-22 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll