This release is entirely contributed by @ZoomRmc -- thank you so much for all the tidy ups and valuable additions to HastyScribe!
- Now multiple input files are handled correctly, including multiple glob patterns.
- IOError exit code changed to
5
. output-file
with multiple input files now ignored, preventing repeated overwrites.- More events are now logged, including successful conversions and invalid arguments.
HastyOptions
now uses default fields for initialization.std/critbits
are now imported to deduplicate input arguments.TMDMetaData
now uses default object fields for initialization and is now anout
parameter ofmarkdown.md
.- Image download warning now outputs one log mark per message.
compileDocument
refactored to not use accumulation variables.hastyscribe_logo
svg and img tag now prepared at compile time.- Log level
lvNotice
now uses a dedicated color - Normal log color changed from
fgWhite
tofgDefault
utils.encode_image
now usesstrutils.multireplace
- Logic for some replacement operations relies on slightly tuned pegs, mostly to avoid multiple passes of
findAll
. style_tag
is now a template- Program now quits with an error if flags are given any value.
- Writing multiple files to stdout is now logged and delimited with an html-comment denoting the end of each file.
- Empty
--output-file
value is now an error. - Optimized HastyScribe logo image.
- Improved logic to generate link styling.
- Implemented simple CSS minifier to reduce document size.
Some new user-facing options are implemented:
- Added option
--iso
is added to allow printing the date in ISO 8601 format in the html footer. - Added option
--no-clobber
to prevent overwrites. - Added option
--output-dir
allowing writing the resulting html files to a user-provided directory. If multiple given paths/globs resolve to files with colliding basenames, files are saved with a path hash suffix to prevent overwrites.
This option takes precedence over--output-file
.