]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki.hs
Implemented more features
[Rakka.git] / Rakka / Wiki.hs
index b8be3a3fabf8bc5d3a56ef77cdd9207da6c81baf..0cf9a135fbdba2658a1da22a79f315908057e15b 100644 (file)
@@ -8,6 +8,10 @@ module Rakka.Wiki
     , ListItem
 
     , Definition(..)
+
+    , CommandType(..)
+    , Attribute
+    , InlineCommand(..)
     )
     where
 
@@ -39,6 +43,8 @@ data InlineElement
       , linkFragment :: !(Maybe String)
       , linkText     :: !(Maybe String)
       }
+    | LineBreak ![Attribute]
+    | InlineCmd !InlineCommand
     deriving (Eq, Show)
 
 
@@ -64,4 +70,21 @@ data Definition
         defTerm :: ![InlineElement]
       , defDesc :: ![InlineElement]
       }
-    deriving (Eq, Show)
\ No newline at end of file
+    deriving (Eq, Show)
+
+
+data CommandType
+    = InlineCommandType
+    | BlockCommandType
+
+
+type Attribute = (String, String)
+
+
+data InlineCommand
+    = InlineCommand {
+        iCmdName       :: !String
+      , iCmdAttributes :: ![Attribute]
+      , iCmdContents   :: ![InlineElement]
+      }
+    deriving (Eq, Show)