You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone having the same issue and seeking a quit solution:
I created a small zsh script to find all occurrences (in a directory and all its subdirectories) of the org-mode link syntax and converted it to the markdown one. Just change the SEARCH_DIR var to your Logseq directory.
#!/bin/zsh
export LC_ALL=C
# Directory to search for files
SEARCH_DIR="*LOGSEQ DIR*"
# Find and convert all files in the directory and subdirectories
find "$SEARCH_DIR" -type f -exec zsh -c '
# Function to convert string format
convert_string_format() {
local file=$1
# Use sed to replace the string format
sed -i "" -E "s/\[\[([^][]*)\]\[([^][]*)\]\]/[\2](\1)/g" "$file"
}
# Call the function with the current file
convert_string_format "$1"
' zsh-shell {} \;
I try to use this tool to convert my logseq org-mode file into MD, all things right, but URL has broken.
This is original org-mode file
And after converting, there is MD file
The URLs in the converted MD file are still org-mode format, so they can’t be rendered correctly.
The text was updated successfully, but these errors were encountered: