feature: only external links open in new tab
This commit is contained in:
parent
b8b8fef72c
commit
0ee8094cc9
3 changed files with 29 additions and 9 deletions
|
@ -37,6 +37,11 @@ class HighlightingConfig:
|
|||
wrap: bool = False
|
||||
|
||||
|
||||
@dataclass
|
||||
class LinksConfig:
|
||||
external_new_tab: bool = True
|
||||
|
||||
|
||||
@dataclass
|
||||
class MarkdownConfig:
|
||||
image_labels: bool = True
|
||||
|
@ -44,6 +49,7 @@ class MarkdownConfig:
|
|||
syntax_highlighting: HighlightingConfig = field(
|
||||
default_factory=HighlightingConfig
|
||||
)
|
||||
links: LinksConfig = field(default_factory=LinksConfig)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue