Skip to content

Commit e9695ca

Browse files
author
Jiang Shang
committed
beauty
1 parent 8ef52c9 commit e9695ca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hyperdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@
371371
// autolink
372372
text = text.replace(/(^|[^\"])((http|https|ftp|mailto):[_a-z0-9-\.\/%#@\?\+=~\|\,]+)($|[^\"])/i, "$1<a href=\"$2\">$2</a>$4");
373373

374+
text = this.call('afterParseInlineBeforeRelease', text);
375+
374376
// release
375377
text = this.releaseHolder(text);
376378

src/Parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ export default class Parser {
252252
text = text.replace(/(^|[^\"])((http|https|ftp|mailto):[_a-z0-9-\.\/%#@\?\+=~\|\,]+)($|[^\"])/i,
253253
"$1<a href=\"$2\">$2</a>$4")
254254

255+
text = this.call('afterParseInlineBeforeRelease', text);
256+
255257
// release
256258
text = this.releaseHolder(text)
257259

0 commit comments

Comments
 (0)