Skip to content

Commit

Permalink
feat: colors and custom fonts transformed to default markdown highlig…
Browse files Browse the repository at this point in the history
…hts (#619)
  • Loading branch information
akosbalasko authored Mar 13, 2024
1 parent 072ff9f commit 2579b48
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 72 deletions.
2 changes: 1 addition & 1 deletion Notes_for_Logseq.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Please use settings below
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepEvernoteLinkIfNoNoteFound": false,
"keepFontColors": false,
"convertColorsToMDHighlight": false,
"logseqSettings":{
"journalNotes": false
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ To configure Yarle, you must create a config file. By default it looks like this
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepFontColors": false,
"convertColorsToMDHighlight": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down Expand Up @@ -228,7 +228,7 @@ The following configurational properties are available:
|```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
|```keepEvernoteLinkIfNoNoteFound```| boolean | it keeps the link to the evernote note if no such note found among the converted files
|```keepFontColors```| boolean | it keeps the custom font family and colors encoded as inline styles in span
|```convertColorsToMDHighlight```| boolean | it converts colored highlights and custom font spans to standard markdown highlights

Metadata settings can be set via the template.

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepEvernoteLinkIfNoNoteFound": false,
"keepFontColors": false,
"convertColorsToMDHighlight": false,

"replacementChar": "_",
"replacementCharacterMap": {
Expand Down
2 changes: 1 addition & 1 deletion config.logseq.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepEvernoteLinkIfNoNoteFound": false,
"keepFontColors": false,
"convertColorsToMDHighlight": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down
2 changes: 1 addition & 1 deletion config.tana.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"keepEvernoteLinkIfNoNoteFound": false,
"keepFontColors": false,
"convertColorsToMDHighlight": 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.

2 changes: 1 addition & 1 deletion src/YarleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export interface YarleOptions {
useUniqueUnknownFileNames?: boolean;
useLevenshteinForLinks?: boolean;
keepEvernoteLinkIfNoNoteFound?: boolean;
keepFontColors?: boolean;
convertColorsToMDHighlight?: boolean;
globalReplacementSettings?: Array<SearchAndReplace>;
}
Loading

0 comments on commit 2579b48

Please sign in to comment.