diff --git a/source/documents/scripts/services/reader/markdown.js.coffee b/source/documents/scripts/services/reader/markdown.js.coffee index 9ff29af..f0b4de5 100644 --- a/source/documents/scripts/services/reader/markdown.js.coffee +++ b/source/documents/scripts/services/reader/markdown.js.coffee @@ -39,10 +39,6 @@ angular.module("sideBySide").factory("markdownReader", () -> readContent = (lexed, separators) -> content = [] - # if first block is separator, add dummy foreword - if lexed[0]["type"] in separators - lexed.unshift({type: "paragraph", text: ""}) - while lexed.length > 0 heading = if lexed[0]["type"] in separators \ then lexed.shift().text or "" \ diff --git a/source/documents/tests/services/reader/markdown.js.coffee b/source/documents/tests/services/reader/markdown.js.coffee index 58df561..657ec26 100644 --- a/source/documents/tests/services/reader/markdown.js.coffee +++ b/source/documents/tests/services/reader/markdown.js.coffee @@ -35,7 +35,6 @@ test("markdownReader", () -> Source: 'http://en.wikisource.org/wiki/Universal_Declaration_of_Human_Rights' } content: [ - { section: "", text: "
\n" } { section: "1", text: "All human beings are born free and equal in dignity and rights...
\n" } { section: "2", text: """Everyone is entitled to all the rights and freedoms...
@@ -92,7 +91,6 @@ test("markdownReader", () -> Separator: "heading" } content: [ - { section: "", text: "\n" } { section: "I", text: """First section.