From a080ef673754e67d2afffb5011b7fe5d31980cdb Mon Sep 17 00:00:00 2001 From: Fuzzwah Date: Thu, 29 Feb 2024 02:15:22 +0000 Subject: [PATCH] ok, i think i get it --- lib/github/markups.rb | 2 +- test/markup_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github/markups.rb b/lib/github/markups.rb index 949ea56f..6a2e4bf5 100644 --- a/lib/github/markups.rb +++ b/lib/github/markups.rb @@ -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" diff --git a/test/markup_test.rb b/test/markup_test.rb index 17cc555d..bd296ff7 100644 --- a/test/markup_test.rb +++ b/test/markup_test.rb @@ -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', '

Title

').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