Skip to content

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

@malcook

Description

@malcook

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions