diff options
author | Loïc Hoguin <[email protected]> | 2018-06-11 22:21:36 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-06-11 22:21:36 +0200 |
commit | dbb935a5972350f734d4abcf31c03f9e54bbd1d4 (patch) | |
tree | bbd4f56f9a5647c807187eb55f033255a29488df /test | |
parent | 976dfc5d92e3e23f356cb19f17ff51b22c75e634 (diff) | |
download | asciideck-dbb935a5972350f734d4abcf31c03f9e54bbd1d4.tar.gz asciideck-dbb935a5972350f734d4abcf31c03f9e54bbd1d4.tar.bz2 asciideck-dbb935a5972350f734d4abcf31c03f9e54bbd1d4.zip |
Add source-highlight support to HTML output
Diffstat (limited to 'test')
-rw-r--r-- | test/parser_SUITE.erl | 10 |
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(_) -> |