Skip to content

Releases: h3rald/hastyscribe

v2.1.0

24 Sep 12:20
Compare
Choose a tag to compare

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.

v2.0.0

31 Aug 18:53
Compare
Choose a tag to compare

This a new major release as it includes quite a few high-impact changes that may be considered breaking changes.

Breaking Changes

  • HastyScribe no longer embeds any web font in generated documents. As a result, generated HTML documents are considerably smaller in size.
  • Removed possibility of dumping stylesheets via the --dump option. If you want to reuse HastyScribe styles, see the HastyStyles project.
  • Badge classes must now start with badge-.
  • There is no special badge/class to display the HastyScribe logo.

Removed badges

The following badges have been removed, mainly because they did not need to have a specific colors (and it is therefore possible to use fa- classes directly):

  • All payment and currency badges
  • red-circle
  • yellow-circle
  • green-circle
  • green-flag
  • yellow-flag
  • red-flag (renamed to flag)
  • gray-circle
  • copyright
  • registered
  • trademark
  • wifi
  • signal
  • circle
  • phone
  • barcode
  • envelope
  • fax
  • print
  • usb
  • globe
  • desktop
  • laptop
  • mobile
  • tablet

New Functionalities

  • Implemented support for footnotes (#77)
  • Implemented support for HTML details and summary elements (#87)
  • Added --noemebed option to prevent embedding of resources (but still generate a document, unlike with the --fragment option.
  • Upgraded to Discount v2.2.7d.
  • Upgraded to use FontAwesome v6.4.2 SVG icons
  • Specific rules to display icons are automatically added to the document based on usage for:
    • badges
    • icons
    • notes
    • links

New link icons

The following link icons have been added:

  • slack
  • discord
  • codepen
  • etsy
  • stack-exchange
  • mastodon
  • file-zipper
  • file-pdf

New badges

The following new badges have been added:

  • flag
  • address
  • toxic
  • download
  • upload
  • network
  • org
  • code
  • react
  • angular
  • vuejs
  • ubuntu
  • suse
  • rust
  • redhat
  • rpi
  • markdown
  • go
  • fedora
  • debian
  • centos

Updated badges

The following textual badges have now been converted to display an icon instead:

  • fixme → red wrench
  • urgent → red stopwatch
  • draftcomment → green comments
  • todo → red clipboard-check
  • verify → red shield halved
  • deadline → red timeline

v1.12.5

03 Jul 15:19
Compare
Choose a tag to compare
  • Upgraded Discount to v2.2.7.
  • Fixed #82 — Linux binaries no longer require musl to be installed.
  • Merged #83 — Last character no longer truncated (thanks @tomidery)
  • Now building libdiscount natively when compiling, no longer using pre-built libraries.
  • Added -v (--version) to display program version.
  • Added -h to display help (also default if no files are specified).

v1.12.4

19 Apr 20:01
2d4f9d5
Compare
Choose a tag to compare
  • Improvements to gc-safety by removing unnecessary procs (#78 -- Thanks @tomidery)
  • Enhanced public API by adding more public functions (#79 -- Thanks @tomidery)
  • Fixed PanDoc metadata checks (#80 -- Thanks @tomidery)

v1.12.3

05 Nov 13:13
Compare
Choose a tag to compare
  • Fixed #74
  • Recompiled libmarkdown on Linux.

v1.12.2

25 Oct 15:59
Compare
Choose a tag to compare
  • Updated Nim to v1.4.0

v1.12.1

30 Aug 10:31
Compare
Choose a tag to compare

v1.12.0

16 Apr 16:09
Compare
Choose a tag to compare
  • Upgraded FontAwesome to v5.13.0
  • Upgraded Discount to v2.2.6
  • No longer distributing pre-built binaries for ARM and x86 Linux
  • Added support for Github-style checkboxes
  • Added an additional width threshold for monitors bigger than 880px
  • Changed font weights back to 400 and 700 to improve readability (Thanks Christof Schardt for proposing this)
  • TOC links for chapters are now bold (Thanks Christof Schardt for proposing this)

v1.11.0

07 Oct 18:46
Compare
Choose a tag to compare
  • Fixed Google link icon not displayed.
  • Fixed style for sidebar icons.
  • Fixed embedding of SVG images.
  • Implemented new blank sidebar for custom sidebars.
  • Partially fixed Nimble package structure.

v1.10.0

29 Apr 13:51
Compare
Choose a tag to compare
  • Improved stylesheet.
  • Now bundling italics and bold variants of Source Code Pro as well.
  • Now using light and semibold variants of Source Sans Pro.
  • New badges (js and freebsd).
  • Minor fixes.