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 +8 -8
- data/CHANGELOG.md +3 -0
- data/lib/octopress-pygments/renderer.rb +6 -0
- data/lib/octopress-pygments/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzlhODVlOTQ5MGMzYWJkOGQyNDQ1OTZjNGEwMTRjNWI3ODQ2NThhNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2YzYTQ3OGMxODkzMzgzNjJjNWJjYmM2YWVmODg5NTdhMmU2YzI2ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzA3NWJmYzliMWFiMjJhODVjNzI0NDYwZTY1YTMzZmJmMDA2NzdkNWFhN2Vl
|
10
|
+
MDk3MjM4OTMyNmRhN2VjNjI5OGQ2MzNmZmY2MDAyM2JlNjczZTc3NjM0N2Zh
|
11
|
+
ZmU2ZmRhYjM5ZmU0MzBkZmIwYzVlNzI1MzUzNjc4ODYxY2Y5M2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2FiMWMwZWYyZmYwMjY2MzMyMThiMmI1NGYyOTEwMjE5ZGE3ZTVmNjA2YjRk
|
14
|
+
NDliMzQ5MGQ0ODc4MTYyZWQzMDAzMGY3MWYzM2FmOTkzMjE0OTNjM2ZmNmMw
|
15
|
+
MzkyNmQxMDRiYzMyNzQ0ZmEwZDFhYTJiZjIyMWZmZjU0Mjg0NTc=
|
data/CHANGELOG.md
CHANGED
@@ -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
|