diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-09-22 23:55:49 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2018-09-23 01:03:04 -0600 |
| commit | ece91c50688d1241d78d58ca103840d72b293ae1 (patch) | |
| tree | 87bb4dcd0e4889bfa000e981d69fd0ca8326a2e2 /test | |
| parent | 3f37e13b9cc25e4e6e6bf2940f3801c9c5930c72 (diff) | |
cache custom callout rx using default hash proc
Diffstat (limited to 'test')
| -rw-r--r-- | test/lists_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lists_test.rb b/test/lists_test.rb index 3827b983..337accde 100644 --- a/test/lists_test.rb +++ b/test/lists_test.rb @@ -4592,6 +4592,21 @@ hello_world() -> io:fwrite("hello, world\n"). % <1> assert_equal %(hello_world() -> io:fwrite("hello, world\n"). (1)), nodes[0].text end + test 'should allow line comment chars preceding callout number to be configurable when source-highlighter is coderay' do + input = <<-EOS +[source,html,line-comment=-#] +---- +-# <1> +%p Hello +---- +<1> Prints a paragraph with the text "Hello" + EOS + output = convert_string_to_embedded input, :attributes => { 'source-highlighter' => 'coderay' } + assert_xpath '//b', output, 1 + nodes = xmlnodes_at_css 'pre', output + assert_equal %((1)\n%p Hello), nodes[0].text + end + test 'literal block with callouts' do input = <<-EOS .... |
