diff --git a/README.md b/README.md index e01baa9e..85c0ab63 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ The following configurational properties are available: | ```sanitizeResourceNameSpaces``` | true or false | Replace spaces in resource names with the `replacementChar`. e.g "linked file.jpg" will be converted to "linked_file.jpg" | ```replacementChar``` | string | the replacement character. e.g "linked*file.jpg" will be converted to "linked_file.jpg". It defaults to "_" | ```replacementCharacterMap``` | JSON Object | it contains character key-value pairs, the keys will be replaced by the proper values in the filename -| ```globalReplacementSettings``` | JSON Array | it contains search and replace pairs, the keys will be replaced by the proper values according to the given type (title or content). Please note: this property has to be in valid JSON Array format, and each item has to have type ('title' or 'content'), regex (what you want to replace as a valid regular expression) and replace (what you want to push instead of the matched text) properties) +| ```globalReplacementSettings``` | JSON Array | it contains search and replace pairs, the keys will be replaced by the proper values according to the given type (title or content). Please note: this property has to be in valid JSON Array format, and each item has to have type ('title', 'content' or 'tag'), regex (what you want to replace as a valid regular expression) and replace (what you want to push instead of the matched text) properties) | ```keepOriginalAmountOfNewlines``` | true or false | keep the original amount of newlines, default is false, when the multiple newlines are collapsed to one. | ```generateNakedUrls``` | true or false | if it's true, Yarle generates 'naked' external Urls without any extra characters. If its false, external Urls are wrapped by '<' and '>' characters | ```addExtensionToInternalLinks``` | true or false | adds '.md' extensions at the end of internal file links, to make them recognizable by DevonThink and other tools diff --git a/config.json b/config.json index 1be42adb..9714d18a 100644 --- a/config.json +++ b/config.json @@ -59,6 +59,11 @@ "type": "content", "regex": "", "replace": "" + }, + { + "type": "tag", + "regex": "", + "replace": "" } ], "logseqSettings": { diff --git a/src/models/ReplaceType.ts b/src/models/ReplaceType.ts index c64002aa..eeacfec9 100644 --- a/src/models/ReplaceType.ts +++ b/src/models/ReplaceType.ts @@ -1,4 +1,5 @@ export enum ReplaceType { title = 'title', - content = 'content' + content = 'content', + tag = 'tag' } \ No newline at end of file diff --git a/src/ui/index.html b/src/ui/index.html index fbf28e42..cab94678 100644 --- a/src/ui/index.html +++ b/src/ui/index.html @@ -536,7 +536,7 @@