jgm / djot.js

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

Added support for file and image inclusion #93

Closed Zacharymk1213 closed 2 months ago

Zacharymk1213 commented 2 months ago

This pull request addresses #85. Despite some of the tests in the functionality-spec.ts failing it is fully functional. (There are tests that fail. How do you want me to handle it? Should I rewrite them or can we just ignore them for now.) This can be verified using the attached test suite (test_files.zip). Just place the files from each test into the main djot directory and run test-pandoc.js (despite the name this produces the ast,html and pandoc)

test_files.zip

Zacharymk1213 commented 2 months ago

html_elements_test.zip Here's another test that uses a far wider range of elements than used in the other tests. As you can see in the attached output with the files to reproduce, it works just fine.