File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ const Markdown = {
160160 const env = await Markdown . beforeParse ( data ) ;
161161 if ( data && data . postData && data . postData . content && parser ) {
162162 // don't start lists with a + or - signs at the very start of a line
163- data . postData . content = data . postData . content . replace ( / ^ (?< symbol > - | \+ ) / gm, ( m , symbol ) => `\\${ symbol } ` ) ;
163+ data . postData . content = data . postData . content . replace ( / (?< = < p d i r = " a u t o " > | ^ ) (?< symbol > - | \+ ) / gm, ( m , symbol ) => `\\${ symbol } ` ) ;
164164 data . postData . content = parser . render ( data . postData . content , env || { } ) ;
165165 }
166166 return Markdown . afterParse ( data ) ;
@@ -180,7 +180,7 @@ const Markdown = {
180180 } ,
181181
182182 parseRaw : async function ( raw ) {
183- raw = raw . replace ( / ^ (?< symbol > - | \+ ) / gm, ( m , symbol ) => `\\${ symbol } ` ) ;
183+ raw = raw . replace ( / (?< = < p d i r = " a u t o " > | ^ ) (?< symbol > - | \+ ) / gm, ( m , symbol ) => `\\${ symbol } ` ) ;
184184 raw = ( raw && parser ) ? parser . render ( raw ) : raw ;
185185 return Markdown . afterParse ( raw ) ;
186186 } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " nodebb-plugin-ws-markdown" ,
3- "version" : " 8.15.4 " ,
3+ "version" : " 8.15.5 " ,
44 "description" : " A Markdown parser for NodeBB" ,
55 "main" : " index.js" ,
66 "repository" : {
You can’t perform that action at this time.
0 commit comments