Why sunlight-x is created
The original Sunlight is meant to be included into the browser. With some work, I was able to wrap the original Sunlight in a GitBook plugin, and it was used to render my books that teaches VB.NET. (Free soft copy of the books are available upon request.)
That’s why sunlight-x is born.
Divided the single-file code into modules.
Code is annotated with Flow, and tests are runned with Jest.
The CSS is made easier to customize. Also, multiple themes can be shown simultaneously in the same page.
Extra tests are made to make sure that every change in the source code is tested. The most important of these extra tests is the demo, which is itself an integration test.
Some refactoring was done to improve the maintainablity of the source code. (Note: more refactors are planned to improve the APIs.)
Check the GitHub repo for downloads and installation instructions.