diff --git a/lib/formatter.js b/lib/formatter.js index ee9d8e8..aadba31 100644 --- a/lib/formatter.js +++ b/lib/formatter.js @@ -93,7 +93,7 @@ function formatListItem(prefix, elem, fn, options) { } function formatUnorderedList(elem, fn, options) { - var result = ''; + var result = '\n'; _.each(elem.children, function(elem) { result += formatListItem(' * ', elem, fn, options); }); @@ -101,7 +101,7 @@ function formatUnorderedList(elem, fn, options) { } function formatOrderedList(elem, fn, options) { - var result = ''; + var result = '\n'; // Make sure there are list items present if (elem.children && elem.children.length) { // Calculate the maximum length to i.