The Data-Wrangler. Copys and transforms Markdown and CSV files from your Obsidian-Vault for usage in Hugo.
- This thing ist done with Typescript.
- Inspired by: /~https://github.com/accraze/split-md
- Why not golang? So you can use it easier outside the golang unsiverse.
- Markdown - for Markdown Files.
- CSV -For files with comma-separated values, where each line is a record. This is a BookBuddy App support: CSV-File conversion & Image Download.
- XLSX - read, write and transform (upcoming).
- Json
- Copying and transforming one or more Markdown files.
- Split Markdown longform documents into several individual documents.
- Obsidian-Links (Images and Documents), copy Files on the fly.
- Latex-Formulas, Paragraph and Inline.
- Frontmatter: Add, Replace, Map and Transform Values.
- Callouts.
- Remove Todos.
- TODO: Take wikilinks (cross-references) into account. Footnotes Endnotes support.
- Adopt Value - a simple pass through example.
- ArrayJoin, ArraySplit
- Boolean Inverse
- Image Downloader
- Insert Date (now)
- Insert UUID
- Trim Characters from String.
You can build customized transformers and Mappers for different solutions. For planned features and changes take a look into the CHANGELOG.md
Bases on the great Linkinator, adds some features:
- Exports the result as JSON, providing a data source for Hugo
- Limit the scan to 'extern', 'intern' or scan 'all'.
- Write each scan to a different file
- have some special_excludes.
For usage refere to the broken-links-checker.test.ts
- It only runs in Backend, not in Browsers.
- Reading and writing is not arbitrary - (but should be).
After the redesign its quite straight forward:
flowchart
subgraph runner
subgraph tasks
task-1
task-2
...
end
reader --> tasks --> writer
end
Important
I am currently redesigning the framework fundamentally. There is a completely new API.
Until the documentation is updated, please take a look at the (not deprecated) test
and test-0-excluded
folder.