Skip to content

Commit f68263e

Browse files
committed
also ignore dashes in parseRaw
1 parent d15fb03 commit f68263e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ const Markdown = {
180180
},
181181

182182
parseRaw: async function (raw) {
183+
raw = raw.replace(/^(?<symbol>-|\+)/gm, (m, symbol) => `\\${symbol}`);
183184
raw = (raw && parser) ? parser.render(raw) : raw;
184185
return Markdown.afterParse(raw);
185186
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodebb-plugin-ws-markdown",
3-
"version": "8.15.3",
3+
"version": "8.15.4",
44
"description": "A Markdown parser for NodeBB",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)