Skip to content

Commit

Permalink
Assume selection is text when creating a link
Browse files Browse the repository at this point in the history
Fixes #7890

Signed-off-by: Jonas De Kegel <jonas@fluid.desi>
  • Loading branch information
jlsjonas committed Sep 27, 2020
1 parent cd9abb4 commit 698b41b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function getBlockContent(style) {
};
case 'LINK':
return {
innerContent: 'link',
endReplacer: ')',
startReplacer: '[text](',
innerContent: 'text',
endReplacer: '](https://example.org)',
startReplacer: '[',
};
default:
return {
Expand Down

0 comments on commit 698b41b

Please sign in to comment.