Use at your own risk!
- Install the Rust programming language.
- Run
cargo run -- "<logseq-dir>/pages" "<obsidian-vault-dir>" --extract-ids
- This will extract all IDs and create a
ids.json
file in the current directory.
- This will extract all IDs and create a
- Run
for each
cargo run -- "<logseq-dir>/pages/<file>" "<obsidian-vault-dir>"
<file>
in thepages
dir.
The script gets the name of the converted file from the title:: <Title>
property at the beginning of the logseq file (this property only exists if the file is in a namespace), or from the file name otherwise. It copies all assets of the logseq file into the assets
subdirectory of the destination folder. The assets folder must be created manually, otherwise the script will fail to copy the assets.
A block that is tagged with #.self-border
(see logtools) will be converted to a callout (using the obsidian Admonition extension) in the form:
```ad-def
**<Tagged block>**
<sub blocks>
```