-
Notifications
You must be signed in to change notification settings - Fork 69
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
Experiment with adding more JS translations of the python source examples #44
Comments
@quackingduck So I've been messing around with this for a few hours and I'm stuck. I think I more or less completely understand the litpy-plugin.js file, but I've been experimenting with
to
Based on what I understand this will do a bulk replace of And in fact it does kind of work. If I add the line
You end up with
Do you have any ideas why this might be happening / am I even approaching this problem correctly? |
Hmmm... Oz, might have changed how the multi-language stuff is supposed to work. @ozan ? |
Ah, yeah this is just because the markdown specification says that markdown inside of block-level html tags shouldn't be parsed. I'm gonna change how the language switching is specified to work around it. |
Oops, reopening in case @richardartoul has any questions. Does #52 make sense? Your anagram example is up now, so should be a better starting point for you :) |
@richardartoul
Check out
/book/recursion/dynamic-programming.md
for an example of chapter with both python and js source code. However the build system doesn't support "literate" js at the moment. Check out/litpy-plugin.js
for what it'd take to support that style.The text was updated successfully, but these errors were encountered: