aboutsummaryrefslogtreecommitdiffstats
path: root/test/parser_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser_SUITE.erl')
-rw-r--r--test/parser_SUITE.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parser_SUITE.erl b/test/parser_SUITE.erl
index 77b9f7a..e5eda88 100644
--- a/test/parser_SUITE.erl
+++ b/test/parser_SUITE.erl
@@ -275,6 +275,16 @@ listing_filter_source_title(_) ->
"----\n"),
ok.
+paragraph_filter_source(_) ->
+ doc("Source code listing filter as a paragraph. (source-highlight-filter)"),
+ Source = <<
+ "init(Req, State) ->\n"
+ " {ok, Req, State}.">>,
+ [{listing_block, #{1 := <<"source">>, 2 := <<"erlang">>}, Source, _}] = parse(iolist_to_binary([
+ "[source,erlang]\n",
+ Source, "\n"])),
+ ok.
+
%% Bulleted lists.
unordered_list(_) ->