Skip to content
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

Blocks with unicode characters are rendered misaligned #331

Open
ooker777 opened this issue Mar 9, 2022 · 4 comments
Open

Blocks with unicode characters are rendered misaligned #331

ooker777 opened this issue Mar 9, 2022 · 4 comments

Comments

@ooker777
Copy link

ooker777 commented Mar 9, 2022

[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

@christianvoigt
Copy link
Owner

christianvoigt commented Mar 9, 2022

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.

@ooker777
Copy link
Author

ooker777 commented Mar 9, 2022

Why do you use Viz, when there is Dagre?

@christianvoigt
Copy link
Owner

christianvoigt commented Mar 9, 2022

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.

@ooker777
Copy link
Author

ooker777 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants