aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-04 21:58:02 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-04 21:58:02 +0000
commit6b0ccf5bd97ac9ed9ccf4f79470d121d559f3168 (patch)
treeb71bf7b7602161feb77b075511b419fe075a9e31
parent77f14a8c805516788f6ee75c53e6cde4f12fea83 (diff)
Clarify variable name
-rw-r--r--lib/writers/markdown-writer.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js
index 5db7cab..eb46175 100644
--- a/lib/writers/markdown-writer.js
+++ b/lib/writers/markdown-writer.js
@@ -49,8 +49,7 @@ function markdownListItem(attributes, list) {
return {start: start, end: "\n"};
}
-// map HTML tags to Markdown syntax
-var htmlmarkdown = {
+var htmlToMarkdown = {
// paragraphs elements use three line feeds to close
// this prevents them being caught by collapsing list elements in `asString`
// while still allowing them to be collapsed when multiple empty lines are removed
@@ -67,7 +66,7 @@ var htmlmarkdown = {
(function() {
for (var i = 1; i <= 6; i++) {
- htmlmarkdown["h" + i] = markdownElement(repeatString("#", i) + " ", "\n\n\n");
+ htmlToMarkdown["h" + i] = markdownElement(repeatString("#", i) + " ", "\n\n\n");
}
})();
@@ -85,7 +84,7 @@ function markdownWriter() {
var idHasBeenWritten = false;
- var createElement = htmlmarkdown[tagName] || function() { return {}; };
+ var createElement = htmlToMarkdown[tagName] || function() { return {}; };
var element = createElement(attributes, list);
elementStack.push({end: element.end, list: list});