See the updated version on my website.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Portability: Linux, *BSD, MacOS, Illumos (mktemp -d) | |
# Dependencies: realpath (POSIX 2024), jq (optional) | |
set -eu | |
echo() { printf '%s\n' "$*"; } | |
die() { echo "$@" >&2; exit 1; } | |
quote() { printf "'%s'\n" "$(printf '%s\n' "$1" | sed "s#'#'\\\\''#g")"; } | |
usage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Portability: Linux, *BSD, MacOS, Illumos (mktemp -d) | |
# Dependencies: Tcl (>=8.5), exiftool, mutool or qpdf | |
set -eu | |
echo() { printf '%s\n' "$*"; } | |
die() { echo "$@" >&2; exit 1; } | |
has_cmd() { command -v "$1" >/dev/null; } | |
usage() |
A way to convert markup from a certain imageboard into HTML. Contains two version: a pure Tcl one and another in Common Lisp using a few packages.
Example usage:
$ cat sample.txt
>green
<pink
==heading==
**spoiler** ''italic'' '''bold''' __underlined__ ~~strikethrough~~
Normal