diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fbf690c..4d3e2fa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: - '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10 env: - PLUGIN_NAME: logseq-plugin-automatic-url-title + PLUGIN_NAME: logseq-plugin-automatic-url-title-fork jobs: build: diff --git a/README.md b/README.md index 0905259..aaffc95 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ ## Logseq Plugin Automatic URL title -#### :warning: Alert: I won't maintain this repo anymore. I consider it complete because it fulfills the requirements that I need. If you need an additional feature or bug to be fixed please feel free to fork the repo and go crazy with it. Thank you :) - Automatically fetches the title of a website and wraps it into markdown link format. Also, renders the favicon of the url next to it.  diff --git a/index.ts b/index.ts index 711dea2..354ed08 100644 --- a/index.ts +++ b/index.ts @@ -2,6 +2,7 @@ import '@logseq/libs'; const DEFAULT_REGEX = { wrappedInCommand: /(\{\{(video)\s*(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})\s*\}\})/gi, + wrappedInCodeTags: /((`|```).*(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,}).*(`|```))/gi, htmlTitleTag: /