X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka%2FWiki%2FFormatter.hs;h=7a6bde3bc81c631573bac749f5b933f504e2e281;hp=95dd9ffb021a8f55e40653c0b5208336202dd465;hb=2ad43b49ecc25bdf87dd19037fd63c12428992ae;hpb=c2cc1241c50c8ff3843002526011574e77f669aa diff --git a/Rakka/Wiki/Formatter.hs b/Rakka/Wiki/Formatter.hs index 95dd9ff..7a6bde3 100644 --- a/Rakka/Wiki/Formatter.hs +++ b/Rakka/Wiki/Formatter.hs @@ -153,6 +153,16 @@ formatInline link@(PageLink _ _ _) -> formatPageLink -< (baseURI, link) + LineBreak attrs + -> ( eelem "br" + += (arrL id >>> attrFromPair) + ) -< attrs + + +attrFromPair :: (ArrowXml a) => a (String, String) XmlTree +attrFromPair = proc (name, value) + -> attr name (txt value) -<< () + formatPageLink :: (ArrowXml a) => a (URI, InlineElement) XmlTree formatPageLink