Skip to content

Commit 163f29e

Browse files
committed
Merge branch 'v4' of https://github.com/jackyzha0/quartz into v4
2 parents 9170009 + fec0a62 commit 163f29e

File tree

1 file changed

+2
-2
lines changed
  • quartz/plugins/transformers

1 file changed

+2
-2
lines changed

quartz/plugins/transformers/ofm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export const arrowRegex = new RegExp(/(-{1,2}>|={1,2}>|<-{1,2}|<={1,2})/g)
113113
// \[\[ -> open brace
114114
// ([^\[\]\|\#]+) -> one or more non-special characters ([,],|, or #) (name)
115115
// (#[^\[\]\|\#]+)? -> # then one or more non-special characters (heading link)
116-
// (\\?\|[^\[\]\#]+)? -> optional escape \ then | then one or more non-special characters (alias)
116+
// (\\?\|[^\[\]\#]+)? -> optional escape \ then | then zero or more non-special characters (alias)
117117
export const wikilinkRegex = new RegExp(
118-
/!?\[\[([^\[\]\|\#\\]+)?(#+[^\[\]\|\#\\]+)?(\\?\|[^\[\]\#]+)?\]\]/g,
118+
/!?\[\[([^\[\]\|\#\\]+)?(#+[^\[\]\|\#\\]+)?(\\?\|[^\[\]\#]*)?\]\]/g,
119119
)
120120

121121
// ^\|([^\n])+\|\n(\|) -> matches the header row

0 commit comments

Comments
 (0)