Add support for square bracket shorthand lists
Add test for shorthand output
Merge pull request #788 from danielgtaylor/square-brackets

Add support for square bracket shorthand lists. Fixes #788.