Git Product home page Git Product logo

Comments (10)

Ir1d avatar Ir1d commented on June 1, 2024 2

Hi @SaswatPadhi could you guide us on how to use pseudocode.js in node? it would be great to use this on server side vue/react projects ❤️

from pseudocode.js.

SaswatPadhi avatar SaswatPadhi commented on June 1, 2024 2

@Ir1d I just published version 2.2.0 with a bunch of fixes and improvements. Your component above looks okay. Please try now if the build issues are resolved and let me know.

Thanks!

from pseudocode.js.

Ir1d avatar Ir1d commented on June 1, 2024 1

@yjl9903 did you make it work? 😂

from pseudocode.js.

SaswatPadhi avatar SaswatPadhi commented on June 1, 2024 1

Hi @Ir1d and @yjl9903, thank you for trying this project! :) Glad you found it useful. Sorry for the delayed response -- last month was super busy. I just merged the pending PRs and am on this issue right now. Will update here soon.

from pseudocode.js.

Ir1d avatar Ir1d commented on June 1, 2024 1

👍 Thanks for your work! The above component is from @yjl9903 actually.

I'm rushing a few deadlines now, and will try this new version next week (hopefully) in my React (Gatsbyjs) project.

from pseudocode.js.

yjl9903 avatar yjl9903 commented on June 1, 2024 1

Ah, sorry! I got confused.

@yjl9903 Please give it another shot when you get a chance, and let us know if the issue is fixed. Thanks!

When I only use katex and pseudocode, it works well now (except a warning below).

 WARNING  Compiled with 1 warnings                                                                                            0:40:06
 warning  in ./node_modules/pseudocode/src/Renderer.js

Module not found: Error: Can't resolve 'mathjax' in 'path\to\node_modules\pseudocode\src'

image

But when only use mathjax and pseudocode, it seems not to render the Latex (and similar warning for katex).

image

from pseudocode.js.

yjl9903 avatar yjl9903 commented on June 1, 2024

@yjl9903 did you make it work? 😂

Use cdn instead of importing it in node.js...

from pseudocode.js.

SaswatPadhi avatar SaswatPadhi commented on June 1, 2024

Ah, sorry! I got confused.

@yjl9903 Please give it another shot when you get a chance, and let us know if the issue is fixed. Thanks!

from pseudocode.js.

SaswatPadhi avatar SaswatPadhi commented on June 1, 2024

I see. Thanks for the quick response.

Let me debug and understand what's going on. I'm reopening this issue.

from pseudocode.js.

SaswatPadhi avatar SaswatPadhi commented on June 1, 2024

Hello,

Sorry that this issue fell out of focus.

I just had a chance to investigate this. It looks like the issue was that KaTeX is a depedency, but was listed as a devDependency and so was not being installed in non-dev environments.

I fixed this in 23c0cfc, and added MathJax as an optionalDependency as well. I also tried your original snippet and confirmed that it compiles now.

Thanks again for bringing this to my attention! Please feel free to reopen if this isn't resolved to your expectation.

from pseudocode.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.