Hey there,
I came across this post as I was looking for such feature as well.
I am using Obsidian to build several Vuepress documentation sites. As part of a build script that converts wiki links to normal markdown links, I added several functions that render the .canvas files to .svg files.
Here is a blog post about converting canvas to svg: Janik von Rotz - Convert Obsidian canvas to SVG
And here is current build script: Wiki/build.js at dd7a75d98474717bb90092f83347e0c8caef157e · Mint-System/Wiki · GitHub
Note that there are no build dependencies. You can simply copy all the converter methods.
I had some problems with previewing entire markdown files.