Skip to content

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

Open
@ashwinvis

Description

@ashwinvis

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions