Blocks with unicode characters are rendered misaligned
ooker777 opened this issue · 4 comments
[Thesis]: Test
+ Toán học là nghệ thuật đặt ra cùng một cái tên cho những thứ khác `nhau`
Here is the sandbox link
Yes, this is caused by an issue in the viz.js library that is hard to debug. This is also causing #138 and #214.
It would be great if anyone would spend some time digging into the compilation of Viz.js to find out what is going wrong there (see link above for further details).
Yes, although I don't know which libs, and at which step they are required. PR's welcome if anyone is able to get it working.
I am hesitant to apply the "hacky" workaround described there.
Why do you use Viz, when there is Dagre?
Good question. The situation regarding rank-based layout algorithms for Javascript is really bad: Viz.js' original developer called it a "hack" and recommended to use Dagre D3 (he subsequently abandoned the project, luckily a fork is still being actively maintained). But Dagre-D3 has not been maintained either for quite a while and is now "deprecated". Dagre-D3 always lacked many features of Viz.js so it never was a good alternative. But now it looks like it is kind of dead.
yGraph offers probably the best layout algorithms, but is a commercial project.
The only good alternative I know of is Cytoscape, because they also support the Dagre layout algorithm. I really would like to switch and use the Dagre layout in their framework (instead of using D3). If I have time for a bigger Argdown-related project this would be at the top of my list. For the next months, I will probably not have the time to do this. But if anyone wants to tackle it, I will be glad to help where I can.