-
Notifications
You must be signed in to change notification settings - Fork 0
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
Print branch #48
Comments
This is now working AFAIK. A little cleanup, then merge with master. Merged. |
I FORGOT. We still need to
|
|
Let's also add
|
…description attribute. feature to the printable_html feature (issue #48)
|
We shall now run ./Markdown.pl (in server/lib) on an input https://github.com/JanSchulz/knitpy i'm so lost. I was just trying to use https://stackoverflow.com/questions/45517816/python-write-to-temp-file-and-read-from-command-line |
This markdown to html thingy is apparently more widely used, and I should now try it out: https://github.com/trentm/python-markdown2 |
It seems to be the same behavior as the JS marked library, so let's move forward with it! Now remember that we customized markdown, so I have forked the library and I must make the following customizations:
This probably needs to be done in |
This is WORKING. 4 and 5 resolved. But markdown2 has this one side effect where displaystyle math delimited by
no longer gets processed by mathjax. Somehow, markdown causes the I started a GitHub issue for this: trentm/python-markdown2#266 |
Just for kicks, I was able to get the original |
If I want to change the behavior of marked2 manually, I think the relevant code is
and
|
…nd probably faster, and behaves exactly like Markdown.pl. This concludes issue #48
Okay so I just replaced |
Print
This branch which I haven't even started yet allows a user to print a node or nodes or a curriculum. The idea is simple. Browsers are already capable of printing what you see on an HTML page very effectively. Therefore, an easy and straightforward solution is to produce a basic HTML page from a node (or nodes, or curriculum) that is almost the same as we already have, but with a few things simplified.
Instead of using blinds, we can simply have headers/subheaders using
<h2>
. There is no need for node-template icons such as "learn" and "edit" and "save". Other than that, everything is pretty much identical to what we already have, including the running of mathjax to get pretty math.The HTML that we produce (after a user clicks "printable page") is opened in a separate page, just like I did in Andrew's groceries repository.
The text was updated successfully, but these errors were encountered: