#receipt #printing #markdown #renderer #driver #epson #tm-u220b

app mintmark

Markdown renderer for Epson TM-U220B receipt printers

2 unstable releases

0.2.0 Apr 5, 2020
0.1.0 Feb 17, 2020

#7 in #receipt

Apache-2.0

33KB
745 lines

Mintmark

Driver for an Epson TM-U220B receipt printer, taking Markdown as input.

Usage

target/debug/mintmark /dev/usb/lp0 < input.md

Features

  • 6 distinct heading types, all centered
  • Bold, rendered as double-strike
  • Italic, rendered as underline
  • Ordered and unordered lists
  • Inline code and code blocks, rendered as red
  • Strikethrough
  • Blockquotes, rendered as indent
  • Horizontal rules, rendered by cutting the paper
  • Arbitrary 1-bit images, specified as ASCII art in code blocks with the image language identifier
  • QR codes, specified as code blocks with the qrcode language identifier
  • Code128 code set B barcodes, specified as code blocks with the code128 language identifier

Missing and non-features

  • Paper widths other than 3" (#6)
  • Images (rendered as the alt text)
  • Links (rendered as the link text)
  • Tables
  • Footnotes
  • Definition lists
  • Task lists (#8)

Dependencies

~14MB
~95K SLoC