diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/writers/html-writer.js | 14 | ||||
| -rw-r--r-- | lib/writers/markdown-writer.js | 7 |
2 files changed, 5 insertions, 16 deletions
diff --git a/lib/writers/html-writer.js b/lib/writers/html-writer.js index e16feec..16c848f 100644 --- a/lib/writers/html-writer.js +++ b/lib/writers/html-writer.js @@ -62,11 +62,6 @@ function prettyWriter() { writer.selfClosing(tagName, attributes); } - function append(html) { - startText(); - writer.append(html.replace("\n", "\n" + indentation)); - } - function insideIndentedElement() { return stack.length === 0 || indentedElements[stack[stack.length - 1]]; } @@ -81,9 +76,9 @@ function prettyWriter() { function indent() { inText = false; if (!start && insideIndentedElement() && !isInPre()) { - writer.append("\n"); + writer._append("\n"); for (var i = 0; i < indentationLevel; i++) { - writer.append(indentation); + writer._append(indentation); } } } @@ -99,8 +94,7 @@ function prettyWriter() { open: open, close: close, text: text, - selfClosing: selfClosing, - append: append + selfClosing: selfClosing }; } @@ -146,7 +140,7 @@ function simpleWriter() { close: close, text: text, selfClosing: selfClosing, - append: append + _append: append }; } diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 4284532..a89ad9f 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -141,10 +141,6 @@ function markdownWriter() { fragments.push(escapeMarkdown(value)); } - function append(html) { - fragments.push(html); - } - function asString() { return fragments.join(""); } @@ -154,8 +150,7 @@ function markdownWriter() { open: open, close: close, text: text, - selfClosing: selfClosing, - append: append + selfClosing: selfClosing }; } |
