Fixed fenced code blocks test.
Handle empty list elements in tight list determination.