- Use
Either Error Text
for pure error handling - Compile with
-Wall
- Rename
forLang
tosetLang
- Rename
WhitespaceMode
constructors - Move
parseStyle
andparseWhitespaceMode
fromMain.hs
to library - Case insensitive language comparison for Markdown fences
- Change type alias
Lang = Text
toLang = Maybe Text
- Added an argument to the program and to the
unlit
function which determines its behaviour w.r.t. whitespace.
- Now exporting
infer
as an additional style option (passing in[]
for style inference will be deprecated in future releases).
- Fixed bug with occurrences of Bird tags in other code blocks. The behaviour of occurrences of other opening/closing braces is unchanged: this will still result in an error.
- Rewrote external API.
- Repaired previous version which was broken.
- Changed signatures of
unlit
andrelit
to be functions from Text to Text, instead of the clumsy [(Int, Text)] -> [(Int, Text)].
-
Changed behaviour of
unlit
such that when it encounters a delimiter that it isn't supposed to detect, it doesn't recognise them. This means that using, e.g.~~~
in a file using LaTeX-style delimiters won't result in an error any longer. -
Added 'haskell' and 'all' styles as valid source styles.
-
Separated executable from a small
Unlit
library, which exposes theunlit
andrelit
functions. -
Created a copy of the
Unlit
library,Unlit.String
, which works for regularString
values. For now, until Backpack becomes a thing. (Also renamedUnlit
toUnlit.Text
.)