]> ruin.nu Git - yawbih.git/blobdiff - Wiki.hs
more
[yawbih.git] / Wiki.hs
diff --git a/Wiki.hs b/Wiki.hs
index 7d337c9f679b3b14ce01e1bf6716864a3390fb6d..0b9e337da4bd7e50f7ebb266c88ca2d9c7bf6c28 100644 (file)
--- a/Wiki.hs
+++ b/Wiki.hs
@@ -2,7 +2,7 @@ module Wiki (
        Backend (getCurrent,getList,get,setCurrent,update)
        ,PGB
        ,createPGB
-       ,Markup (Text, Paragraph, Link)
+       ,Markup (Text, Paragraph, Link, Bold)
        ,Document
        ,wikiParser
 
@@ -31,6 +31,7 @@ class Backend a where
 data Markup = Text String
        | Paragraph 
        | Link String String
+       | Bold [Markup]
 
 type Document = [Markup]
 
@@ -66,6 +67,12 @@ pLinkLong = do
        d <- many1 $ noneOf "]" 
        string "]]"
        return (Link l d)
+
+pBold = do
+       string "'''"
+       s <- wikiParser
+       return (Bold s)
+
 pLink = do
        string "[["
        l <- many1 $ noneOf "]"