root/trunk/bin/boldify @ 14533
1 | 11949 | aaronmk | #!/bin/bash -e
|
---|---|---|---|
2 | # makes Redmine links bold
|
||
3 | 11951 | aaronmk | # idempotent
|
4 | 11949 | aaronmk | # usage: self <in >out
|
5 | . "$(dirname "${BASH_SOURCE[0]}")"/../lib/sh/util.sh |
||
6 | |||
7 | 11951 | aaronmk | clog++ sed \ |
8 | 11952 | aaronmk | -e 's/(^|[^*])(\[\[[^]]*\]\])([^*]|$)/\1*\2*\3/g' \ |
9 | 11951 | aaronmk | -e 's/(")([^"*]*)(":)/\1*\2*\3/g' |