Skip to content

Commit

Permalink
feat: storing font colors as inline styles in span (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Feb 17, 2024
1 parent 3745b4f commit 25cad1b
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 41 deletions.
1 change: 1 addition & 0 deletions Notes_for_Logseq.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Please use settings below
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,
"logseqSettings":{
"journalNotes": false
}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ To configure Yarle, you must create a config file. By default it looks like this
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down Expand Up @@ -212,6 +213,8 @@ The following configurational properties are available:
| ```encryptionPasswords``` | string | list of passwords used in any notes, separated by commas
|```useUniqueUnknownFileNames``` | boolean | generates a couple of random characters at the end of the resource file names if the exact name cannot be recognised. For instance: unknown_filename-d2fd86c3.pdf
|```useLevenshteinForLinks```| boolean| it applies the link to the note with the filename that has the closest Levenshtein distance to the text of the link
|```keepFontColors```| boolean | it keeps the custom font family and colors encoded as inline styles in span

Metadata settings can be set via the template.


Expand Down
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,

"replacementChar": "_",
"replacementCharacterMap": {
Expand Down
1 change: 1 addition & 0 deletions config.logseq.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down
1 change: 1 addition & 0 deletions config.tana.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,
"replacementChar": "_",
"replacementCharacterMap": {
"<": "_",
Expand Down
58 changes: 19 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/YarleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ export interface YarleOptions {
obsidianTaskTag?: string;
useUniqueUnknownFileNames?: boolean;
useLevenshteinForLinks?: boolean;
keepFontColors?: boolean;
}
Loading

0 comments on commit 25cad1b

Please sign in to comment.