LiterateMarkdown-0.1.0.0: Converter to convert from .lhs to .md and vice versa.

Safe HaskellSafe
LanguageHaskell2010

Converter

Synopsis

Documentation

convertToMd :: String -> String Source #

converts a files contents from the LHS birdtick style to markdown, replacing the code marked by birdticks with ```haskell ... ```

convertToLhs :: String -> String Source #

converts a files contents from git flavoured markdown to literate haskell, replacing code marked with ```haskell ...``` with > birdticks and code marked with ``` ... ``` with < birdticks quotes are converted to `NOTE:` marked lines.

isFirstOO :: String -> [Char] -> Bool Source #

uses isFirst to check multiple characters

isFirst :: String -> Char -> Bool Source #

checks wether the first two characters of a string are a given character and ' ' useful to look for code and quotes