-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: re-apply windows hover preview image fix & improve hover preview…
… performance (#2312) * move hover preview rendering to engine * Revert "Revert "fix(views): hover preview containing local images on Windows (#2047)"" This reverts commit 7890c01. * hover preview strips out frontmatter VSCode markdown preview tries to show the frontmatter as a block of text, so just strip it out instead. * fix performance issue & eliminate MDUtilsV4 from noteRefsV2 * Fix tests & re-add some V4/V5 compat * remove debugger * remove debugger * fix type error * fix bad snaps * Revert "fix bad snaps" This reverts commit 20cb523. * use note fnames for links in tests by default * fix snaps that change run-to-run * remove debugger * work around husky check * fix test on Windows * implement type changes
- Loading branch information
Kaan Genç
committed
Feb 3, 2022
1 parent
0ad5126
commit 103655e
Showing
33 changed files
with
1,226 additions
and
1,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Contains types that help with Dendron's unifiedjs markdown processor. | ||
|
||
/** The expected output from the processor, if the processor is used to process or stringify a tree. */ | ||
export enum DendronASTDest { | ||
MD_ENHANCED_PREVIEW = "MD_ENHANCED_PREVIEW", | ||
MD_REGULAR = "MD_REGULAR", | ||
MD_DENDRON = "MD_DENDRON", | ||
HTML = "HTML", | ||
} | ||
|
||
/** | ||
* If processor should run in an alternative flavor | ||
*/ | ||
export enum ProcFlavor { | ||
/** | ||
* No special processing | ||
*/ | ||
REGULAR = "REGULAR", | ||
/** | ||
* Apply publishing rules | ||
*/ | ||
PUBLISHING = "PUBLISHING", | ||
/** | ||
* Apply preview rules | ||
*/ | ||
PREVIEW = "PREVIEW", | ||
/** | ||
* Apply hover preview rules (used for the preview when hovering over a link) | ||
*/ | ||
HOVER_PREVIEW = "HOVER_PREVIEW", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.