Don't add dummy foreword

This commit is contained in:
Vit Brunner
2013-06-22 10:10:01 +01:00
parent b65460d74e
commit f7dadb00c6
2 changed files with 0 additions and 6 deletions
@@ -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 "" \
@@ -35,7 +35,6 @@ test("markdownReader", () ->
Source: '<a href="http://en.wikisource.org/wiki/Universal_Declaration_of_Human_Rights">http://en.wikisource.org/wiki/Universal_Declaration_of_Human_Rights</a>'
}
content: [
{ section: "", text: "<p></p>\n" }
{ section: "1", text: "<p>All human beings are born <em>free</em> and equal in dignity and rights...</p>\n" }
{ section: "2", text: """
<p>Everyone is entitled to all the rights and freedoms...</p>
@@ -92,7 +91,6 @@ test("markdownReader", () ->
Separator: "heading"
}
content: [
{ section: "", text: "<p></p>\n" }
{ section: "I", text: """
<p>First section.</p>
<hr>