Skip to content

Commit

Permalink
ok, i think i get it
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzwah committed Feb 29, 2024
1 parent f74c862 commit a080ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/github/markups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
Asciidoctor.convert(content, :safe => :secure, :attributes => attributes)
end

markup(::GitHub::Markups::MARKUP_RST, :rst, /re?st(\.txt)?/, ["rst"]) do |filename, content, options: {}|
markup(::GitHub::Markups::MARKUP_RST, :paru, /re?st(\.txt)?/, ["rst"]) do |filename, content, options: {}|
output = Paru::Pandoc.new do
from "rst"
to "html"
Expand Down
2 changes: 1 addition & 1 deletion test/markup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_each_render_has_a_name
assert_equal "creole", GitHub::Markup.renderer('README.creole', '= Title =').name
assert_equal "wikicloth", GitHub::Markup.renderer('README.wiki', '<h1>Title</h1>').name
assert_equal "asciidoctor", GitHub::Markup.renderer('README.adoc', '== Title').name
assert_equal "rst", GitHub::Markup.renderer('README.rst', 'Title').name
assert_equal "restructuredtext", GitHub::Markup.renderer('README.rst', 'Title').name
assert_equal "pod", GitHub::Markup.renderer('README.pod', '=head1').name
assert_equal "pod6", GitHub::Markup.renderer('README.pod6', '=begin pod').name
end
Expand Down

0 comments on commit a080ef6

Please sign in to comment.