Skip to content

Commit 89decbd

Browse files
authored
Merge pull request #27 from janniks/add-link-options
Make links open in new tab by default
2 parents 063dd9d + a8cb5b5 commit 89decbd

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/blocks/decorator.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<a
1919
v-else-if="decoratorKey === 'a'"
2020
class="notion-link"
21+
target="_blank"
2122
:href="decoratorValue"
2223
>
2324
<NotionDecorator :content="nextContent" />

src/lib/blockable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const blockProps = {
1515

1616
export const blockComputed = {
1717
pass() {
18+
// todo: make this more dynamic by iterating over blockProps attributes
1819
return {
1920
blockMap: this.blockMap,
2021
contentId: this.contentId,

0 commit comments

Comments
 (0)