272 | #{h(text).strip}
273 |
274 | tags to code blocks
280 | code.sub(%r{}, %Q{}).
281 | sub(%r{
}, %q{
})
282 | end
283 |
284 | end
285 |
286 | end
287 |
288 | end
289 |
290 | # Provide an engine-agnostic name for the hash representation.
291 | [Post, Page, Pager].each { |klass|
292 | klass.send(:alias_method, :to_hash, :to_liquid)
293 | }
294 |
295 | end
296 |
--------------------------------------------------------------------------------
/lib/jekyll/rendering/version.rb:
--------------------------------------------------------------------------------
1 | module Jekyll
2 |
3 | module Rendering
4 |
5 | module Version
6 |
7 | MAJOR = 0
8 | MINOR = 0
9 | TINY = 9
10 |
11 | class << self
12 |
13 | # Returns array representation.
14 | def to_a
15 | [MAJOR, MINOR, TINY]
16 | end
17 |
18 | # Short-cut for version string.
19 | def to_s
20 | to_a.join('.')
21 | end
22 |
23 | end
24 |
25 | end
26 |
27 | VERSION = Version.to_s
28 |
29 | end
30 |
31 | end
32 |
--------------------------------------------------------------------------------