Benature / obsidian-text-format

Format seleted text in Obsdidian.md
MIT License
181 stars 16 forks source link

Remove URL Links does not work as expected #56

Closed thisisclement closed 1 year ago

thisisclement commented 1 year ago

Hi there, I downloaded this plugin (version 2.2.5) so that I can remove the links in my text. Example: [Pricing](https://k21academy.com/amazon-web-services/aws-lake-formation/#6) Using "remove URL links" it becomes: https://k21academy.com/amazon-web-services/aws-lake-formation/#6

I am expecting Pricing which was what I understood as functionality from this plugin.

I'll be happy to provide any further info as well. Thanks.

Benature commented 1 year ago

Hi, do you need to keep the url in some other condition? (i.e., keep https://k21academy.com/amazon-web-services/aws-lake-formation/#6 in your example) Or you just need to remove the url and keep the text (Pricing) all the time?

thisisclement commented 1 year ago

Hi Benature, I believe for me coming from any text formatter (MS Docs, or Notion), is to remove the link to the text. i.e to remove the url under the text, (Pricing), and just leave Pricing as the final text. Hope that clarifies.

Benature commented 1 year ago

In v2.2.6, I add a setting for Remove URL Links. In your case, you can modify the format in the setting to be {text}, so that you can maintain the text rather than the url.

Benature commented 1 year ago

I think this issue is addressed, feel free to reopen this issue if have any question.