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

Possible to create custom format utilizing "URL Fragment Text Directives" for html links, but not markdown. #40

Open
malcook opened this issue Jul 6, 2023 · 0 comments

Comments

@malcook
Copy link

malcook commented Jul 6, 2023

URL Fragment Text Directives are supported in Chrome.

Here is an example of one formatted as markdown (and rendered by github's markdown rendering):

create a shareable link

Such links can be created in HTML format using Chrome by following instructions Share or link to quotes & text in Chrome

They can also be created using the CreateLink chrome extension by defining in its options the following link format:

Name Format Filter
HTML highlighted <a href="%url%#:~:text=%htmlEscapedText%">%htmlEscapedText%</a>  

With it, the following HTML link is put in the clipboard:

<a href="https://support.google.com/chrome/answer/10256233#:~:text=[create a shareable link](https://support.google.com/chrome/answer/10256233#:~:text=create%20a%20shareable%20link)">create a shareable link</a>

However, the following analogous definition for a "markdown highlighted" link format fails:

Name Format Filter
markdown highlighted [%text%](%url%#:~:text=%htmlEscapedText%)

For some reason, the %htmlEscapedText% variable is percent-encoded in my HTML highlighted format but not my markdown highlighted format where the following incorrect text is placed in the clipboard:

[create a shareable link](https://support.google.com/chrome/answer/10256233#:~:text=create a shareable link)

This issue is possibly related to closed #37

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

No branches or pull requests

1 participant