Skip to content
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

Feature request: Convert hyperlinks to markdown when pasting into markdown block #182

Open
korniko98 opened this issue Jan 28, 2024 · 1 comment
Labels
enhancement New feature or enhancement

Comments

@korniko98
Copy link

korniko98 commented Jan 28, 2024

Have you searched existing Github issues to see if someone has already requested this feature?
Yes

Is your feature request related to a problem? Please describe.
I would like to copy text including hyperlinks into heynote markdown blocks but links are interpreted as text rather than hyperlinks. This means that information about the links is lost when pasting.

Describe the solution you'd like
I would like heynote to convert hyperlinks to markdown when pasting into a markdown block.

Describe alternatives you've considered
In the meantime I'm copying text to notion (which does the abovementioned conversion) and from there to heynote.

@heyman
Copy link
Owner

heyman commented Jan 29, 2024

This sounds useful, but it's not a super trivial fix.

Currently, Heynote uses navigator.clipboard.readText() to get the clipboard contents. I assume we would need to read the HTML content instead, and then use something like turndown to turn it into Markdown (if all cursors are inside a Markdown block).

@heyman heyman added the enhancement New feature or enhancement label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants