Skip to content

Commit

Permalink
Fix bug: ensure headline link content is intact
Browse files Browse the repository at this point in the history
  • Loading branch information
sh78 committed Apr 3, 2021
1 parent a55892e commit 5a1b02c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import TurndownService from 'turndown'
return (
// This is an anchor element
node.nodeName === 'A' &&
!node.textContent.length &&
// Turndown is set to "inlined" link mode
options.linkStyle === 'inlined' &&
// The href is an internal fragment link
Expand Down

0 comments on commit 5a1b02c

Please sign in to comment.