rizaldy.club/quartz/plugins/transformers
Luis Michaelis bece8fcab6
fix: properly handle absolute paths in CreatedModifiedDate (#790)
When providing an absolute path to the content directory (e.g. when using an Obsidian Vault in another directory), the build step would fail with

    Failed to process `/absolute/path/to/file.md`: ENOENT: no such file or directory, stat '/current/working/directory/absolute/path/'

This problem originated in the `CreatedModifiedDate` transformer which tries to construct a native filesystem path to the file to call `fs.stat` on. It did not however, account for the original file path contained in the received `VFile` being an absolute path and so, just concatenated the current working directory with the absolute path producing a nonexistent one.

This patch adds a simple fix for this issue by checking if the original file path is already absolute before concatenating with the current working directory.
2024-02-02 09:51:34 -08:00
..
description.ts
frontmatter.ts fix: revert parsing dates in frontmatter 2024-01-28 21:27:16 -08:00
gfm.ts feat(icon): update content for gfm links (#751) 2024-01-28 23:38:59 -08:00
index.ts
lastmod.ts fix: properly handle absolute paths in CreatedModifiedDate (#790) 2024-02-02 09:51:34 -08:00
latex.ts chore(deps): bump katex to 0.16.9 (#772) 2024-01-31 09:25:16 -08:00
linebreaks.ts
links.ts feat: External link icons (#697) 2024-01-15 23:55:32 -08:00
ofm.ts fix: regression in formatted callout titles 2024-01-31 12:09:04 -08:00
oxhugofm.ts feat: add transformations for latex in oxhugofm (#510) 2023-09-29 11:35:26 -07:00
syntax.ts deps: bump everything (closes #635) (#636) 2023-12-18 09:48:40 -08:00
toc.ts feat: scrub link formatting from toc entries 2023-11-15 20:13:28 -08:00