I exported a notebook to markdown (which is great), but I found that the files don't have links to other files like they were in Siyuan.
So, is there anyway to make markdown exports have links to other files?
I exported a notebook to markdown (which is great), but I found that the files don't have links to other files like they were in Siyuan.
So, is there anyway to make markdown exports have links to other files?
I think the issue remains with anchor hash
for the reason that it is limited to notebook currently, meaning I cannot select rendering from Markdown to HTML from the notebook_ex > export > (selectable=Markdown/siyuan.sy.zip)
.
How would i export my notes to HTML with anchor hash
? I think I would be limited to using pandoc input.md -o output.html
, I tried it with pandoc, which succesfully creates html with link to other note, but it just opens the other note without navigation to the <span>
block, so no hash jump in browser (brave/firefox) to block.
Here's the before and after comparison.
Before:
# Networking The most important things to know are the networking protocols. * [TCP](siyuan://blocks/20231110002225-jzlfmvr) * [UDP](siyuan://blocks/20231111114912-9gi1l0p) * [HTTP](siyuan://blocks/20231110002250-b9w413n) * [TLS](siyuan://blocks/20231111114933-oti4rz4) * [WebSockets](siyuan://blocks/20231111115839-xw23n4k) * [WebRTC](siyuan://blocks/20231111114916-nevtkga)
After:
# Networking The most important things to know are the networking protocols. * [TCP](/Networking/TCP.md) * [UDP](/Networking/UDP.md) * [HTTP](/Networking/HTTP.md) * [TLS](/Networking/TLS.md) * [WebSockets](/Networking/WebSockets.md) * [WebRTC](/Networking/WebRTC.md)
I appreciate your resonse, but it is not only for complete batch export for users to turn away from siyuan, but rather for collaborative reasons and to publish notes. Users of Siyuan can collaborate and share specific notes.
I just want a guide on how to use anchor hash
. How would I proceed after I used the feature after export, so post anchor hash
. I do not quite understand what to do with the new file after export.
You're welcome! I actually was too lazy to write it myself so I asked ChatGPT to do it for me and changed some mistakes in its code.
And I might as well do it for non-document blocks, I will post the solution here too.
In any case, it seems like this problem can be solved easily and be integrated into SiYuan.
I am not familiar with SiYuan code or Golang in general so someone else more familiar may make a Pull Request for this feature way faster than me.
If not, I don't mind spending some time to learn enough to build this feature into SiYuan. It's the least I can do in return for getting this amazing app for free!
Thanks @88250 @sagar and long live the open source!
Welcome to here!
Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.
Signup About