Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (25 sloc) 0.493 kB
295d550 @dayne a jekyll plugin for .asciidoc that hopefull doesn't conflict when pus…
dayne authored
1 module Jekyll
2 class AsciiConverter < Converter
3 safe true
4
5 priority :low
6
7 def setup
8 return if @setup
9 require 'github/markup'
10 @setup = true
11 end
12
13 def matches(ext)
4febe04 @dagwieers I vote for syntax highlighting in github editor :-)
dagwieers authored
14 ext =~ /(txt|adoc|asciidoc)/i
295d550 @dayne a jekyll plugin for .asciidoc that hopefull doesn't conflict when pus…
dayne authored
15 end
16
17 def output_ext(ext)
18 ".html"
19 end
20
21 def convert(content)
22 setup
23 begin
24 GitHub::Markup.render('thing.asciidoc',content)
25 rescue => e
26 puts "asciidoc exception: #{e.message}"
27 end
28 end
29 end
30 end
31
Something went wrong with that request. Please try again.