From 0dfaf105839b54db09f8624253734538a5ff35d8 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Wed, 28 Aug 2019 10:23:06 +0530 Subject: [PATCH] Clean up markdown renderer. --- examples/docs/src/MarkdownRenderer.elm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/docs/src/MarkdownRenderer.elm b/examples/docs/src/MarkdownRenderer.elm index e6c8101c..6ba8c326 100644 --- a/examples/docs/src/MarkdownRenderer.elm +++ b/examples/docs/src/MarkdownRenderer.elm @@ -16,7 +16,6 @@ view markdown = markdown |> Markdown.Parser.render { heading = heading - , todo = Element.text "TODO" , htmlDecoder = Markdown.Parser.htmlOneOf [ Markdown.Parser.htmlTag "Banner" @@ -52,7 +51,6 @@ view markdown = ) , Markdown.Parser.htmlTag "Box" (\children -> - -- Element.column [] children Element.column [ Element.centerX , Element.padding 30 @@ -97,9 +95,8 @@ view markdown = , code = code , plain = Element.text , link = - -- TODO use link.title - \link content -> - Element.link [] { url = link.destination, label = Element.text content } + \link body -> + Element.link [] { url = link.destination, label = Element.text body } , list = \items -> Element.column [] @@ -111,6 +108,7 @@ view markdown = ) ) , codeBlock = codeBlock + , todo = Element.text "TODO" }