jekyll-pseudo 0.2.0 → 0.2.1

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: d64ccd37cacaf6ba29d58dadcea871bb6bf9ed62
4
- data.tar.gz: c6ee03e9aec2390b5a448bf8340c8aa218a7e588
3
+ metadata.gz: 157a1e1ead41f933da64ae4b16e0eff639e92acf
4
+ data.tar.gz: 1c4f33f6ad462afe8308642968a00bf9f212ff87
5
5
  SHA512:
6
- metadata.gz: 8c8b25e304820ed20d89b7132630ffc807d3c8f1a973c2de40b2e3312fc4b52b74b9e297a77d299b3b93ee43279bbb0106372f5d69b00e1765a9b9dde2408e54
7
- data.tar.gz: 065c787b174656a3a0bd64d0dd0e3f2841ad6c010dcc8dac3bf75665ea447fe16b795d148a0a5f25efe500f428c320c483f28e3ee56a9bb1c46770b0f6d993d4
6
+ metadata.gz: 27c03397058f0eacbc70b8da0071040ecc571d3a4dc5e53bbb3938795fc5921abcb554e7cd0b28247c717483e3a8d55437bbff47bd7ccb981be4dbbbdd38d8e3
7
+ data.tar.gz: 11a921ad9c3fbeacb073c9d97f71ab1a5ca1d24ceed87459a9946a16e52c62f06aa875fa526622a8878bf7cc0377e8f3e2f520b0e4e1cb9d01729dc75800bc87
@@ -4,7 +4,7 @@ require 'jekyll-pseudo/grammar'
4
4
  require 'jekyll-pseudo/html_brush'
5
5
 
6
6
  module Jekyll
7
- class PseudoTag < Liquid::Tag
7
+ class PseudoBlock < Liquid::Block
8
8
  def initialize(tag_name, text, tokens)
9
9
  super
10
10
  @brush = Pseudo::HtmlBrush.new
@@ -12,7 +12,7 @@ module Jekyll
12
12
  end
13
13
 
14
14
  def render(context)
15
- @text = @nodelist.join('')
15
+ @text = super
16
16
  @formatted = @grammar.format(@text, @brush)
17
17
  "<div class='pseudo'>#{@formatted}</div>"
18
18
  end
@@ -20,4 +20,4 @@ module Jekyll
20
20
  end
21
21
 
22
22
 
23
- Liquid::Template.register_tag('pseudo', Jekyll::PseudoTag)
23
+ Liquid::Template.register_tag('pseudo', Jekyll::PseudoBlock)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Pseudo
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-pseudo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wiktor Macura