jgm / djot.js

JavaScript implementation of djot
MIT License
141 stars 15 forks source link

Add support for file and image inclusion #90

Closed Zacharymk1213 closed 2 months ago

Zacharymk1213 commented 2 months ago

Addresses issue #85 by adding support for file and image inclusion. Has been tested thoroughly to make sure it works.

To test: Using the attached files choose the test you want, copy the files for that test into the root djot directory (after compiling) and run

node ./test.js

Output will be in output.html. If an error is detected (as in a cyclic include which would lead to an infinite loop) it prints in the console. test_files.zip

Zacharymk1213 commented 2 months ago

Been pointed out this needs further work to handle footnotes. Closing.