diff options
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r-- | webapp/utils/markdown.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index 18d5cf128..809ecc526 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -130,10 +130,10 @@ class MattermostMarkdownRenderer extends marked.Renderer { if (/^\d+.$/.test(bullet)) { // this is a numbered list item so override the numbering - return `<li value="${parseInt(bullet)}">${text}</li>`; - } else { - return `<li>${text}</li>`; + return `<li value="${parseInt(bullet, 10)}">${text}</li>`; } + + return `<li>${text}</li>`; } text(txt) { |