module Markdown let rec parse (markdown: string) = let mutable html = "" let mutable remainder = markdown let mutable isList = false let lines = remainder.Split('\n') for i = 0 to lines.Length - 1 do if lines.[i].[0] = '*' then if not isList then html <- html + "" html