Updated plan with new angle: trying out Enlive snippets and templates.
Snippet for chapters looks good; gets in heading (with anchor) and standard paragraphs.
Template and snippet files for Of Night added.
Added test for the snippet chapter.
Nothing in ofnight.clj was specific to Of Night, so renamed to libreoffice.clj.
Made mine-content a multimethod so I didn't have to jump through hoops to call it every time; added tests for it and for the chapter snippet, both with the libre-maid cleaner and with no cleaner.
Updated plan with where to go now; commented out test of chapter. It's too unstable to test now.
Took care of item 1 on to-do list, also cleaned up the chapter snippet, made it use metadata name as html anchor on the heading. Since the metadata is already attached to the paragraph, I can just pluck it out and use it again for my hrefs when I build the table of contents snippet.
Started on toc template; doesn't work yet.
toc seems to work. So to-do items 1 and 2 are taken care of.
Have templates for toc and title. Working on main. Added mine-all function to merge_files and fixed whitespace-removing regex in libreoffice's paragraph-maid; it now removes whitespace and the non-breaking space that Libre Office inserts.
Can now be run from the command line. The insertion of the title page and toc is all fucked up.
Working on validate-config and writing unit tests for the new version, cleaning up old code.
Finished adding tests for core functionality; need to finish working on items 4 and 5 in the plan. Re: item 5, need to make the main function read the template namespace from the config map and call their version of template-main. Re: item 4, need to make sure my current template is generating HTML that has everything in the right order and doesn't repeat anything, as well as beginning work on improving the cleaner function.
Still working on item 4. Solved html escape issues; have Unicode working. See list of issues at the bottom of plan.md.
Figured out how to add in style strings; figuring out how to integrate it into rest of code.
About to integrate styles into program. Apparently got chapter and no-heading to share a common function for their shared code.
Debugging the application of functions to extract style information
Have italics going in through a horrible hack. Will fix later. About to try and fix weird whitespace by unwrapping all spans with no style attribute.
Added web interface.