diff help/generate.sh @ 496:fb95d70c80d5

More help
author Chris Cannam
date Fri, 19 Aug 2011 16:30:43 +0100
parents e6141a238811
children 21aa41b62c3a
line wrap: on
line diff
--- a/help/generate.sh	Thu Aug 18 17:13:04 2011 +0100
+++ b/help/generate.sh	Fri Aug 19 16:30:43 2011 +0100
@@ -21,6 +21,7 @@
 s/^{[\w\s]+}//s;
 s/^(\s*)([A-Za-z][^\n]*)/$1<h2>$2<\/h2>/s;
 s/^\s+\*\s+(.*)$/<ul><li>$1<\/li><\/ul>/gm;
+s/\*([\w"][^\*]+)\*/<b>$1<\/b>/gs;
 s/"([\w])/&ldquo;$1/gs;
 s/([\w])"/$1&rdquo;/gs;
 s/^\#([^\s]+)$/<center><img src="images\/$1.png"><\/center>/gm;
@@ -30,10 +31,9 @@
 s/^\n*(<[^p])/\n<p>$1/gs;
 s/([^\n])\n\n/$1<\/p>\n\n/gs;
 s/([^>\n])\n*$/$1<\/p>\n\n/gs;
-s/\[\[([^\|]*)\|([^\]]*)\]\]/<a href="$1">$2<\/a>/gs;
+s/\[\[([^\|]*)\|([^\]]*)\]\]/<a href="a-$1.html">$2<\/a>/gs;
 s/\[\[([^\|\]]*)\]\]/<a href="$1">$1<\/a>/gs;
 s/\b_([^_]+)_\b/<i>$1<\/i>/gs;
-s/\*(\w[^\*]+)\*/<b>$1<\/b>/gs;
 s/@(\w[^@]+)@/<code>$1<\/code>/gs;
 s/---/&mdash;/gs;
 s/--/&ndash;/gs;