Comments (10)
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.
@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.
@yjl9903 did you make it work? 😂
from pseudocode.js.
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.
👍 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.
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'
But when only use mathjax
and pseudocode
, it seems not to render the Latex (and similar warning for katex
).
from pseudocode.js.
@yjl9903 did you make it work? 😂
Use cdn instead of importing it in node.js...
from pseudocode.js.
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.
I see. Thanks for the quick response.
Let me debug and understand what's going on. I'm reopening this issue.
from pseudocode.js.
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)
- Change the color of the horizontal lines HOT 3
- Server side rendering HOT 2
- Question: How do I make use of the local js and css files? HOT 5
- Problem with repeat...until loop with noEnd: true HOT 1
- Algorithms numbering HOT 1
- just a thanks HOT 1
- renderElement TypeError when backend doesn't exist HOT 5
- Render Elements By Class Name HOT 2
- Matching CLRS 4th Edition Styles HOT 4
- pseudocode.renderClass is undefined HOT 6
- Enable scopeLines (sidelines) HOT 1
- Any instructions on how to use this with marp https://marp.app/ HOT 4
- JSON parsing error in `renderElement` HOT 3
- MathJax 4.0 HOT 5
- Algorithm numbers as hyperlinks
- Update rendering dynamically (on button click) HOT 1
- Color of horizontal Lines incompatible with dark Mode HOT 1
- The limit of rendering elements is 10 HOT 1
- Caption HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pseudocode.js.