You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/common/mdh-html-to-text.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -304,6 +304,7 @@ function convertHTMLtoMarkdown(tag, html) {
304
304
( // begin optional prefix capture group
305
305
(?:\]\([^\)]*) // match an unclosed URL portion of a MD link -- like "...](..."
306
306
|(?:\[[^\]]*) // match an unclosed name portion of a MD link -- like "...[..."
307
+
|(?:\[.*\]:.*) // match the patterns of reflink and nolink -- link "[...]:..."
307
308
)? // capture group is optional so that we do the "negative" lookbehind -- that is, we can match links that are *not* preceded by the stuff we *don't* want
308
309
<a\s[^>]*href="([^"]*)"[^>]*>(.*?)<\/a> // an HTML link
0 commit comments