ee0ec3d
1
2
3
4
#!/bin/sh perl -ple '$_ = "<h${\(length $1)} id=\"$3\">$2</h${\(length $1)}>" if /^(#+)\s*(.*?)\s*#(\S+)$/'