BlogLiterately 0.5 release

I have now released version 0.5 of BlogLiterately. (You can read about the 0.4 release here.) This version does uploading of images! Here is proof:


(My previous post explains the problem and solution with image uploads.)

It also allows you to specify expected outputs in a ghci session (a feature suggested by Dan Burton). This block


now produces

ghci> 7+6

ghci> 9+4

Outputs that match the expected output are shown normally; outputs that don’t match the expected output are shown with the actual output in red and expected in blue. The idea is that this helps you catch errors in your code before uploading the post. (Of course, you don’t have to specify expected outputs if you don’t want to.)

Another new feature is that BlogLiterately will prompt you for your password if you don’t specify it on the command line (another feature requested by Dan).

Finally, one of the coolest new features (in my opinion) is that the internals are now exposed as a library, and in particular you can easily add your own custom transformation passes (of type Pandoc -> IO Pandoc) to the existing ones. So, for example, you could do something particular with your own specially tagged blocks (like [ghci] blocks), or wrap images in some fancy HTML to produce frames and captions, or automatically turn certain things into links, or whatever you can dream up. If you come up with any transformations you think might be more generally useful, please send them to me so I can include them in future releases for others to use.

Happy blogging!

About Brent

Assistant Professor of Computer Science at Hendrix College. Functional programmer, mathematician, teacher, pianist, follower of Jesus.
This entry was posted in haskell, writing and tagged , , , , , . Bookmark the permalink.

3 Responses to BlogLiterately 0.5 release

  1. Sergei Trofimovich says:

    Hi Brent!

    Nice to see you working on BL!
    I’ve forked it a while ago ( and added:

    – RST support (it’s sometimes easier to embed tables, metadata, internal references, etc.)
    – auth data is now read from simple config file
    – commandline parsing greatly simplified

    The post source looks like that: (Note the header)

    Sources diverged a bit. What do you think of me porting our features against your repo?


    • Brent says:

      Hi Sergei, too bad I didn’t know you had forked it, we could have incorporated your changes before the sources diverged! Anyway, yes, I would love to have you port your features. RST support would be great, and I wanted to eventually move in the direction of supporting a config file anyway.

  2. Pingback: BlogLiterately 0.5.2 release, with improved image uploading | blog :: Brent -> [String]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.