-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolving relative images in subdirectories #31
Comments
The workaround listed does work. I've modified it a bit to make it a little more flexible until I've got time to look for a fix in go: set -e
while read -r -d '' file; do
echo "Syncing $file..."
pushd "$(dirname "$file")" > /dev/null
filename="$(basename "$file")"
mark -k -f "$filename"
popd > /dev/null
done < <(find . -type f -name "*.md" -print0) |
Unfortunately this workaround fails when using it in a Bitbucket pipeline yaml file, resulting error is "syntax error near unexpected token `do'" Without this workaround, I can get the files attached in Confluence by specifying the full path in the meta tags but they're not embedded in the page itself as the path using in the markdown doesn't exactly match the full path. |
|
I'm open to merge any feature which will help the community 😺 |
For markdown documents in subdirectories referring relative images,like
tool is able to find image only in scenario, when it is executed from the same directory where file resides.
If I will try to execute it passing file path, like
it will fail.
So far workaround is manual traversing of dirs one by one, but would be nice if relative references could be resolved.
The text was updated successfully, but these errors were encountered: