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

[feature-request] Fixing Javascript Issue on iOS, Katex Example loads incorrectly #191

Open
magnussentio opened this issue Jul 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@magnussentio
Copy link

Howdy! I've been experimenting with markmap and have successfully been able to render javascript charts and tables as nodes in a markmap mindmap. Its pretty cool and simply requires adding div elements into the markdown, then relying on the javascript libraries to render the chart or table based on the div's id. Works well on desktop (biggest bug is that when the chart / table node collapses you have to add a custom function to rerender the chart / table, the BIG problem is on iOS mobile everything breaks - it appears to be related to an iOS bug that prevents javascript elements from properly scaling and rendering them in the incorrect position. Genuinely have no clue how you would solve this since this since it seems to be a long standing issue. You can observe the issue on the markmap.js.org example if on iOS - just use the try it out link. You'll see that the Katex equation loads in the top left corner with out respect to the markmap.

Here is a link to the charts I've built on replit: Link to webview

Here is the link to the markmap try it out page, load on iOS to see the issue: Try it out

Point is - markmap is by far the best mindmapping library and it could really be extended further - you'll see on my replit that I'm experimenting with ASCII based alternatives to the javascript libraries, but have a table with pagination as a node is where I'm stuck since I believe that will rely on javascript (which currently renders incorrectly on iOS mobile).

@magnussentio magnussentio added the bug Something isn't working label Jul 17, 2023
@magnussentio
Copy link
Author

Sorry just saw this is a duplicate. Looks like no solution. If anyone sees this try using ASCII based graphs if looking to make bar graphs on mobile - but if desktop focused you can certainly do some cool stuff embedding javascript into a markmap!

@magnussentio
Copy link
Author

Curious if there is a way to add a table visualization to markmap code so markdown formatted to be displayed as a table can be displayed as a polished table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant