behringer24 / spell

Smart Processing and Enhanced Lightweight Layout - Markdown to EPUB converter
GNU General Public License v3.0
1 stars 0 forks source link

Add custom templates #6

Open behringer24 opened 4 weeks ago

behringer24 commented 4 weeks ago

Add a feature to make custom templates available.

The default stylesheet should only be added if the custome style/template has been selected.

Decide if this is an option on document level or should be available as command line option.

behringer24 commented 3 weeks ago

Idea: Make the stylesheet cascadeable :-D

  1. Load default stylesheet
  2. Load document level stylesheet if set
  3. Load compile time stylesheet if set This make the latter overwrite the previous ones.

To decide: Merge all to a single stylesheet OR add multiple stylesheets? To check: Can e-book readers handle multiple files? Are there performance implications?

As the stylesheets are referenced at the top of each chapter file they must be set at the very beginning, before chapters are written.