diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-07 23:25:51 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-07 23:25:51 +0000 |
| commit | a0c8f6a3298e85dac32133bb7e9a0013a2c9e74b (patch) | |
| tree | 27ec1d68584838633f66dc27d8a02994f261d923 | |
| parent | b6da8bd438fcd3897f9667cf772acf6277f9776f (diff) | |
Extract bullet variable
| -rw-r--r-- | lib/writers/markdown-writer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 7ea3ed4..5908e3b 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -49,8 +49,8 @@ function markdownListItem(attributes, list, listItem) { list.count++; listItem.hasClosed = false; - var start = repeatString("\t", list.indent) + - (list.isOrdered ? list.count + "." : "-") + " "; + var bullet = list.isOrdered ? list.count + "." : "-"; + var start = repeatString("\t", list.indent) + bullet + " "; return { start: start, |
