yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
529 stars 81 forks source link

RFE - if possible, provide some type of regex filtering to mask out certain parts of the page titles #125

Open geolaw opened 6 months ago

geolaw commented 6 months ago

Summary

In firefox, if I go to a webpage, then use the md plugin to copy "Current tab link", the resulting md link contains the site name e.g.

https://stackoverflow.com/questions/13534306/how-can-i-set-the-grep-after-context-to-be-until-the-next-blank-line

linux - How can I set the grep after context to be "until the next blank line"? - Stack Overflow

It would be cool to be able to configure something within the plugin settings to be able to mask out certain site names so in the case of that stack over flow link - filter out ' - Stack Overflow' so that

This md link : linux - How can I set the grep after context to be "until the next blank line"? - Stack Overflow

Becomes this: linux - How can I set the grep after context to be "until the next blank line"?

Reproduction Steps

1.

Expected Behavior

-

Actual Behavior

-

Reproducible Environment

firefox 123.0

yorkxin commented 2 weeks ago

Related to https://github.com/yorkxin/copy-as-markdown/issues/52