Formatting Lists With Code for LeanPub

I use LeanPub to publish my books (e.g., The Jackson Cookbook), which uses Markdown and some extensions to format the book. I’ve found it useful to do lots of tests, because formatting things like lists can get complicated when they’re nested, have code blocks, or have multiple paragraphs per item. Since I’ve seen questions around this on the LeanPub group mailing list, I figured I’d write a post with an example text file of Markdown and a PDF showing how it gets formatted.

This is the source Markdown text for the example.

This is the generated PDF based on the above Markdown text.

If you have any questions, please feel free to post.

Leave a Reply

Your email address will not be published. Required fields are marked *