Skip to content

Support Copy block hyperlink (Markdown) #8065

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

Closed
wherejumpout opened this issue Apr 20, 2023 · 6 comments
Closed

Support Copy block hyperlink (Markdown) #8065

wherejumpout opened this issue Apr 20, 2023 · 6 comments
Assignees
Milestone

Comments

@wherejumpout
Copy link

In what scenarios do you need this feature?

siyuan-note have the siyuan:// protocol, but many other applications does not support it directly
So when I copy the hyperlink of an block to some other application, the app does not recogize it.

Describe the optimal solution

In the copy menu , add a new item: "copy as markdown hyperlink"
copy the link as following:
first 16 words of the block

Describe the candidate solution

No response

Other information

there is a similar "copy-as-markdown" extension in chrome. It's really popular
https://chrome.google.com/webstore/detail/copy-as-markdown/fkeaekngjflipcockcnpobkpbbfbhmdn

@leolee9086
Copy link

@wherejumpout
Copy link
Author

Cool, I'm not familiar with javascript. It's the code of a plugin and you need to hack it by youself, or this feature will eventually on the future release?

@leolee9086
Copy link

that's just a javascript code snippet, I made some trick to let docs runable

@88250
Copy link
Member

88250 commented Apr 22, 2023

Hello, do you mean to add a copy siyuan:// to Markdown format? For example, copy it as [Content Block](siyuan://blocks/20210428222013-0afj8vn)

@wherejumpout
Copy link
Author

Yes.

Content Block or the first 16/32/64 charactor of the Content Block

Some app can recognize siyuan:// directly, but many others can only identify it as a link with the help of markdown markup.

I think this feature can help more users to enjoy the benefit of siyuan protocol

@88250 88250 added this to the 2.8.6 milestone Apr 23, 2023
@88250 88250 changed the title Copy a block as Markdown style link Supprt Copy block hyperlink in Markdown Apr 23, 2023
@88250 88250 changed the title Supprt Copy block hyperlink in Markdown Supprt Copy block hyperlink (Markdown) Apr 23, 2023
@88250 88250 changed the title Supprt Copy block hyperlink (Markdown) Support Copy block hyperlink (Markdown) Apr 23, 2023
@Vanessa219
Copy link
Member

db16d8f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants