From 4ec11af08a901592867eb510296f9729590793b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 12 Jun 2018 22:50:30 +0200 Subject: Add passthrough blocks for HTML --- src/asciideck_to_html.erl | 6 ++++++ 1 file changed, 6 insertions(+) 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, _}) -> "\n" ]. +%% Passthrough blocks. + +passthrough_block({passthrough_block, _, HTML, _}) -> + HTML. + %% Lists. list({list, #{type := bulleted}, Items, _}) -> -- cgit v1.2.3