cleric-plus-thief/ed/journalitem.ed

14 lines
159 B
Plaintext

.
g/BEGIN/ka
g/END/kb
1,'ad
'b,$d
g/^##/+s/^/note: /
v/^note/s/^/+ /
%s/+ ##/##/
%s_^## <time>\(.*\)</time> - \(.*\)_\
time: \1\
title: \2_
1,$w /dev/stdout
q