dragonforce2010 / roam-website-title-parser

3 stars 1 forks source link

only transform URLs without titles #2

Open cobblepot1 opened 1 year ago

cobblepot1 commented 1 year ago

Great add-on! One suggestion; I often copy/paste links in my pages that are already markdown links, in format like [[Amazon.com](https://www.amazon.com/). This add-on will try to add the title AGAIN to these links. Is it possible to have it parse the text and add the title only if the URL is not already part of a markdown link?

jdevera commented 1 year ago

I came to report this too. Would this be a question of adding a negative match for ]( at the start of the URL regex at https://github.com/dragonforce2010/roam-website-title-parser/blob/93de3304cc0324385601b658a7a06cc640b533a6/src/index.ts#L24 ?