jekyll-paspagon 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-paspagon/hooks.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c672615ee560df9989c4d5893b497a02e76aac97
4
- data.tar.gz: c14a099943f1767c278b5ea3b590bcf9ebc3a579
3
+ metadata.gz: 92fe5badf86afc82ddc43a513650398af335c5e2
4
+ data.tar.gz: 6cba2527467cb32d79e60eb781d373e1a80c6407
5
5
  SHA512:
6
- metadata.gz: 2910bfbb15874b8a2bb62b23dc334d6608c8df76601c9c9256e75740153aa34f815ef5fadd7b662d36a4a019f3187b77d342db6a715519806811eab747793666
7
- data.tar.gz: c81b355fe7c96a4e3de7160419fe2a0b92fe2735edc53ed2f13101841b601e7ab6aa3e5783ee974e0367c52ac9aa57473c69e50b450e1bd79145b91ae09907ff
6
+ metadata.gz: eb497f916d6ab4cccf71648d3313c4e078e4989cf36494efeb3e50ecdd950e264343861d18eafbffff3544f2b6d40458391444543e790e2327f39676ffa7680b
7
+ data.tar.gz: 5efb8c3751a8a05b99d9ed7ba1557224433d4e31059cba8b392732779647906064e5a715c802762e3e68e2b330a430815c2ff8284b64f5e7ae0d2f9ab293c880
@@ -157,7 +157,7 @@ def generation_command(post, format, _format_config, dest_path)
157
157
  case format
158
158
  when 'azw3', 'mobi', 'pdf'
159
159
  intermediary_path = File.join(Dir.tmpdir, Digest::SHA256.hexdigest(dest_path) + '.epub')
160
- "pandoc #{post.path} -f #{input_format} -t epub -o #{intermediary_path} && ebook-convert #{intermediary_path} #{dest_path} > /dev/null && rm #{intermediary_path}"
160
+ "pandoc #{post.path} -f #{input_format} -t epub -o #{intermediary_path} && ebook-convert #{intermediary_path} #{dest_path} --start-reading-at \"//h:h1[not(contains (@class, 'title'))]\" > /dev/null && rm #{intermediary_path}"
161
161
  else
162
162
  "pandoc #{post.path} -f #{input_format} -t #{format} -o #{dest_path}"
163
163
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-paspagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Jurewicz