octopress-pygments 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTUwM2Q0N2ExNDAwNzE4OGQzYzUzNjQ5ZmRhMWY5MWQ2YzkzZWY4Ng==
4
+ MzlhODVlOTQ5MGMzYWJkOGQyNDQ1OTZjNGEwMTRjNWI3ODQ2NThhNQ==
5
5
  data.tar.gz: !binary |-
6
- NjcwZjkwMzQ5ZjU1NDAzZjVkN2QxY2ZlZThlNzFlNmVkZmY3YjAwNg==
6
+ N2YzYTQ3OGMxODkzMzgzNjJjNWJjYmM2YWVmODg5NTdhMmU2YzI2ZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODU4NGZiZmVmZTk3ZTA0ZmFlYmFjNTI1NDFiYzY0MzcxY2VhZTU0ZTdiZTVl
10
- NDU1ODU3YWI2NzBjOWExOGRmYzcxOGEzMTYzOTM4YjljYmVkNDA1NmJkOGU4
11
- ZGNmMWExMWI1MWNmMDg2OTg3ZjA3NmQ5YjVkMjE5ZDZkN2RhOGQ=
9
+ YzA3NWJmYzliMWFiMjJhODVjNzI0NDYwZTY1YTMzZmJmMDA2NzdkNWFhN2Vl
10
+ MDk3MjM4OTMyNmRhN2VjNjI5OGQ2MzNmZmY2MDAyM2JlNjczZTc3NjM0N2Zh
11
+ ZmU2ZmRhYjM5ZmU0MzBkZmIwYzVlNzI1MzUzNjc4ODYxY2Y5M2Q=
12
12
  data.tar.gz: !binary |-
13
- MGY4ODEwMmVhN2EzOWNhNDAyMTZhMDdiZWEwODAwYmM1MTk3NmZiMmYxMjcx
14
- YTYxNDgzZGYzOTg0NDg1NzI3ODYyMGI1ZTQzZTAzODBkMTM2OTYyMjQ2OWIw
15
- ZDAxZjU2ZGM5YzIwMDM3NDZmOTc2MjA5YWU2ZTE4N2QzYzMxZDI=
13
+ Y2FiMWMwZWYyZmYwMjY2MzMyMThiMmI1NGYyOTEwMjE5ZGE3ZTVmNjA2YjRk
14
+ NDliMzQ5MGQ0ODc4MTYyZWQzMDAzMGY3MWYzM2FmOTkzMjE0OTNjM2ZmNmMw
15
+ MzkyNmQxMDRiYzMyNzQ0ZmEwZDFhYTJiZjIyMWZmZjU0Mjg0NTc=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.3
4
+ - Fixed: figcaptions now work when specifying a title.
5
+
3
6
  ## 1.2.2
4
7
  - Now you can call Pygments.read_cache directly.
5
8
  - Added an option to specify a label on cache files.
@@ -55,6 +55,12 @@ module Octopress
55
55
  encode_liquid(highlighted_code).to_s
56
56
  end
57
57
 
58
+ def captionize (caption, url, link_text)
59
+ figcaption = "<figcaption>#{caption}"
60
+ figcaption += "<a href='#{url}'>#{(link_text || 'link').strip}</a>" if url
61
+ figcaption += "</figcaption>"
62
+ end
63
+
58
64
  def tableize_code (code, lang, options = {})
59
65
  start = options[:start] || 1
60
66
  lines = options[:linenos] || true
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Pygments
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-pygments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis