Skip to content

Commit

Permalink
names
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzwah committed Feb 29, 2024
1 parent 428745f commit 32944ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/github/markups.rb
Expand Up @@ -11,14 +11,14 @@

markup_impl(::GitHub::Markups::MARKUP_RDOC, GitHub::Markup::RDoc.new)

markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"]) do |filename, content, options: {}|
markup(::GitHub::Markups::MARKUP_ORG, 'org-ruby', /org/, ["Org"], "org-ruby") do |filename, content, options: {}|
Orgmode::Parser.new(content, {
:allow_include_files => false,
:skip_syntax_highlight => true
}).to_html
end

markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"]) do |filename, content, options: {}|
markup(::GitHub::Markups::MARKUP_CREOLE, :creole, /creole/, ["Creole"], "creole") do |filename, content, options: {}|
Creole.creolize(content)
end

Expand All @@ -28,7 +28,7 @@
wikicloth.to_html(:noedit => true)
end

markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"]) do |filename, content, options: {}|
markup(::GitHub::Markups::MARKUP_ASCIIDOC, :asciidoctor, /adoc|asc(iidoc)?/, ["AsciiDoc"], "adoc") do |filename, content, options: {}|
attributes = {
'showtitle' => '@',
'idprefix' => '',
Expand All @@ -48,7 +48,7 @@
Asciidoctor.convert(content, :safe => :secure, :attributes => attributes)
end

markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"]) do |filename, content, options: {}|
markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["reStructuredText"], "rst") do |filename, content, options: {}|
output = Paru::Pandoc.new do
from "rst"
to "html"
Expand Down

0 comments on commit 32944ce

Please sign in to comment.