Skip to content

Commit

Permalink
fix: fix order/unorder list format, #6
Browse files Browse the repository at this point in the history
  • Loading branch information
彧瑾 committed Jun 10, 2021
1 parent c308f10 commit b4b2c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions formatUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ export default {
// 将有编号列表的“1. ”改成 “1. ”
line = line.replace(/^(\s*)(\d\.)\s+(\S)/, '$1$2 $3');

// 将无编号列表的“* ”改成 “-
// 将无编号列表的“- ”改成 “-
line = line.replace(/^(\s*)[-\*]\s+(\S)/, '$1- $2');
// 将无编号列表的“* ”改成 “- ”
// 将无编号列表的“- ”改成 “- ”
line = line.replace(/^(\s*)[-\*]\s+(\S)/, '$1- $2');

return line;
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-pangu",
"version": "1.2.7",
"version": "1.2.9",
"description": "A small plugin aims to add space between Chinese Characters and English Alphabet, and it is a boon for typographically compulsive people. ",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit b4b2c99

Please sign in to comment.