add: basic obsidian mode

This commit is contained in:
2025-12-17 23:36:41 -08:00
parent a01cda4566
commit 379ac5869d
4 changed files with 73 additions and 5 deletions

View File

@@ -16,6 +16,17 @@ The arguments supported include:
- --git-repo the URL of the git repo to load
- --listen address to listen on, in the form of 0.0.0.0:8080
- --obsidian-mode pre-processes markdown files to make them more standard compliant
Additionally, if there is a './template.html' file in the repo, is will be used to wrap
the generated HTML. Specifically, the 'body' block will be replaced by the markdown content.
## Obsidian mode
Intended to create compatibility with Obsidian, because it has a fancy UI.
Specifically, this replaces `[[thing]]` with `[thing](thing.md)`
None of the other options in https://help.obsidian.md/obsidian-flavored-markdown are included.
## Future work
Replace the Obisdian markdown with https://crates.io/crates/obsidian-export.