Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@h3rald h3rald released this 24 Sep 12:20

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 an out parameter of markdown.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 to fgDefault
  • utils.encode_image now uses strutils.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.