mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fixed ESLint errors (#3134)
This commit is contained in:
committed by
Christopher Speller
parent
ec7a273550
commit
1e7805b790
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user