]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki.hs
Implemented the outline command
[Rakka.git] / Rakka / Wiki.hs
index 96231a46c72174bc33c7df3733e8c9457e230b09..0fcf38a6bca33b31550bb2ddbc8d5d49f37a19e7 100644 (file)
@@ -17,6 +17,7 @@ module Rakka.Wiki
     where
 
 import           Data.Generics
+import           Network.URI
 import           Rakka.Page
 
 
@@ -34,6 +35,7 @@ data BlockElement
     | Preformatted ![InlineElement]
     | Paragraph ![InlineElement]
     | Div ![Attribute] ![BlockElement]
+    | EmptyBlock
     | BlockCmd !BlockCommand
     deriving (Eq, Show, Typeable, Data)
 
@@ -47,10 +49,15 @@ data InlineElement
       , linkFragment :: !(Maybe String)
       , linkText     :: !(Maybe String)
       }
+    | ExternalLink {
+        extLinkURI  :: !URI
+      , extLinkText :: !(Maybe String)
+      }
     | LineBreak ![Attribute]
     | Span ![Attribute] ![InlineElement]
     | Image ![Attribute]
     | Anchor ![Attribute] ![InlineElement]
+    | EmptyInline
     | InlineCmd !InlineCommand
     deriving (Eq, Show, Typeable, Data)