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