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

Mermaid and Mathjax packages missing from node_modules when installed using yarn #86

Open
ashwinvis opened this issue Jun 18, 2021 · 0 comments
Labels

Comments

@ashwinvis
Copy link
Collaborator

Problem summary

Yarn seems to use a flat package layout (?) and therefore mermaid.js and mathjax.js are not placed where npm would place it. Code blocks and mermaid graphs fail to render.

Expected

Mermaid.js and Mathjax.js just works with yarn

Environment Information

  • OS and version: Linux
  • Vim: 8.2
  • Browser and version: Firefox 89

Provide the output of test command (required)

All tests pass

Steps to reproduce the issue (required)

Start with command you used to install instant-markdown-d

  1. yarn global add instant-markdown-d
  2. instant-markdown-d --mathjax --mermaid <test_math.md
  3. instant-markdown-d --mathjax --mermaid <test_mermaid.md
  4. ls ~/.config/yarn/global/node_modules/instant-markdown-d/node_modules -> empty!
  5. yarn global remove instant-markdown-d
  6. npm install -g instant-markdown-d
  7. ls ~/.npm-packages/lib/node_modules/instant-markdown-d/node_modules -> all dependencies!
@ashwinvis ashwinvis added the Bug label Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant