|
11 | 11 |
|
12 | 12 | markup_impl(::GitHub::Markups::MARKUP_RDOC, GitHub::Markup::RDoc.new) |
13 | 13 |
|
14 | | -markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"], "org-ruby") do |filename, content, options: {}| |
| 14 | +markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"]) do |filename, content, options: {}| |
15 | 15 | Orgmode::Parser.new(content, { |
16 | 16 | :allow_include_files => false, |
17 | 17 | :skip_syntax_highlight => true |
18 | 18 | }).to_html |
19 | 19 | end |
20 | 20 |
|
21 | | -markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"], "creole") do |filename, content, options: {}| |
| 21 | +markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"]) do |filename, content, options: {}| |
22 | 22 | Creole.creolize(content) |
23 | 23 | end |
24 | 24 |
|
|
28 | 28 | wikicloth.to_html(:noedit => true) |
29 | 29 | end |
30 | 30 |
|
31 | | -markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"], "adoc") do |filename, content, options: {}| |
| 31 | +markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"]) do |filename, content, options: {}| |
32 | 32 | attributes = { |
33 | 33 | 'showtitle' => '@', |
34 | 34 | 'idprefix' => '', |
|
48 | 48 | Asciidoctor.convert(content, :safe => :secure, :attributes => attributes) |
49 | 49 | end |
50 | 50 |
|
51 | | -markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"], "rst") do |filename, content, options: {}| |
52 | | - puts "hi" |
| 51 | +markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["rst"]) do |filename, content, options: {}| |
| 52 | + output = Paru::Pandoc.new do |
| 53 | + from "rst" |
| 54 | + to "html" |
| 55 | + end << content |
| 56 | + puts output |
53 | 57 | end |
54 | 58 |
|
55 | 59 | command(::GitHub::Markups::MARKUP_POD6, :pod62html, /pod6/, ["Pod 6"], "pod6") |
|
0 commit comments