-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bad link formatting #5985
base: main
Are you sure you want to change the base?
Fix bad link formatting #5985
Conversation
3ab2144
to
8861698
Compare
Signed-off-by: DavidS <[email protected]>
@@ -54,11 +54,7 @@ export const DefaultKit = Extension.create<DefaultKitOptions>({ | |||
Highlight.configure({ | |||
multicolor: false | |||
}), | |||
Typography.configure({}), | |||
Link.configure({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot just remove this extension:
- Link button in toolbar will be broken
- Existing content that contains links will be broken
@@ -49,7 +100,9 @@ | |||
{#if node.type === MarkupNodeType.doc} | |||
<MarkupNodes {nodes} {preview} /> | |||
{:else if node.type === MarkupNodeType.text} | |||
{node.text} | |||
<p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding additional paragraphs may affect layout
@@ -49,7 +100,9 @@ | |||
{#if node.type === MarkupNodeType.doc} | |||
<MarkupNodes {nodes} {preview} /> | |||
{:else if node.type === MarkupNodeType.text} | |||
{node.text} | |||
<p> | |||
{@html urlify(node.text)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@html
is potentially dangerous , we are trying not to use it
Pull Request Requirements:
This PR removes link formatting from tiptap fixing bad link formatting:
The changes adds links to URLs only.