Skip to content

Instantly share code, notes, and snippets.

@alexmwalker
alexmwalker / md_to_icml.sh
Last active January 24, 2023 08:15
This shell script takes any markdown file in the same folder and creates an Indesign-ready ICML file conversion in a new folder called 'icml'. You can then PLACE that ICML file into an Indesign Template. The idea is that your template file should already have all your Paragraph, Character and Graphic styles ready. Note that your ICML file remain…
#!/bin/bash
set -e
declare -r out_dir="./icml"
declare -r old_ifs=${IFS}
declare f
declare filename
if ! command -v pandoc >/dev/null
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');