Releases: h3rald/hastyscribe
Releases · h3rald/hastyscribe
v2.1.0
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
.
v2.0.0
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
- 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
- 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
v1.12.3
v1.12.2
v1.12.1
v1.12.0
- 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)