aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-12 22:50:30 +0200
committerLoïc Hoguin <[email protected]>2018-06-12 22:50:30 +0200
commit4ec11af08a901592867eb510296f9729590793b3 (patch)
treea07f6ec08707791c67045061a47e5bc14e7be835
parent272386133de3684512ef3c371d2dc7f8b47d7c4a (diff)
downloadasciideck-4ec11af08a901592867eb510296f9729590793b3.tar.gz
asciideck-4ec11af08a901592867eb510296f9729590793b3.tar.bz2
asciideck-4ec11af08a901592867eb510296f9729590793b3.zip
Add passthrough blocks for HTML
-rw-r--r--src/asciideck_to_html.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/asciideck_to_html.erl b/src/asciideck_to_html.erl
index b33150f..5dce089 100644
--- a/src/asciideck_to_html.erl
+++ b/src/asciideck_to_html.erl
@@ -71,6 +71,7 @@ ast_node(Node={Type, _, _, _}) ->
section_title -> section_title(Node);
paragraph -> paragraph(Node);
listing_block -> listing_block(Node);
+ passthrough_block -> passthrough_block(Node);
list -> list(Node);
table -> table(Node);
block_macro -> block_macro(Node);
@@ -137,6 +138,11 @@ listing_block({listing_block, Attrs, Listing0, _}) ->
"</div></div>\n"
].
+%% Passthrough blocks.
+
+passthrough_block({passthrough_block, _, HTML, _}) ->
+ HTML.
+
%% Lists.
list({list, #{type := bulleted}, Items, _}) ->