Skip to content

Commit cf113c8

Browse files
authored
Merge pull request #431 from iceljc/main
refine symbol styles
2 parents aeb4b5d + e28da16 commit cf113c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/helpers/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export function replaceNewLine(text) {
349349
* @returns {string}
350350
*/
351351
export function replaceMarkdown(text) {
352-
let res = text.replace(/#([\s]+)/g, '\\# ').replace(/^-\s*/gm, '• ').replace(/[-|=]{3,}/g, '•••');
352+
let res = text.replace(/#([\s]+)/g, '\\# ').replace(/^-[ \t]+/gm, '• ').replace(/[-|=]{3,}/g, '•••');
353353

354354
let regex1 = new RegExp('\\*(.*)\\*', 'g');
355355
let regex2 = new RegExp('\\*([\\*]+)\\*', 'g');

0 commit comments

Comments
 (0)