Basic markdown table of contents serializer.