diff --git a/reporting/md-color b/reporting/md-color index b06a060..1af4615 100755 --- a/reporting/md-color +++ b/reporting/md-color @@ -11,11 +11,12 @@ function helpexit() { # * bullets # 1. ordered list # ## Headers +# ``` code block # code block # code inline # [links](URL) # *bold* & **bold** -# _bold_ +# _bold_ # <> tags # [ ] check list (unofficial) # [x] check list (unofficial) @@ -23,13 +24,14 @@ function helpexit() { # Color codes export HB_RULES='"\[[^]]\+\]([^)]\+)" "$U$B" \ -"^\s*\*.*" "$y" \ +"^\s*\*" "$y" \ "^[[:space:]]*[0-9]\+\..*" "$y" \ "^#.*" "$U$W" \ +"\`\`\`.*" "$c" \ "^\s\s\s\s[^\*0-9].*" "$c" \ "\`[^[[:space:]]]*[^\`]\+\`" "$c" \ "\*\{1,2\}[^[[:space:]]]*[^\*]\+\*\{1,2\}" "$W" \ -"_[^[[:space:]]]*[^_]\+_" "$W" \ +"[[:space:]]_[^[[:space:]]]*[^_]\+_" "$W" \ "<[^>]\+>" "$K" \ "^\s*\[\s]\s.*" "$y" \ "^\s*\[x]\s.*" "$Y" \ diff --git a/reporting/src2ans b/reporting/src2ans index 5209a8f..af82d2c 100755 --- a/reporting/src2ans +++ b/reporting/src2ans @@ -96,7 +96,10 @@ Special syntaxes: bc=bc() opts=setup_options() -f=open(opts.filename,'r') +if opts.filename=="-": + f=sys.stdin +else: + f=open(opts.filename,'r') for row in f: if not row: continue diff --git a/skel/xsessionrc b/skel/xsessionrc index a5b429b..a87e177 100755 --- a/skel/xsessionrc +++ b/skel/xsessionrc @@ -1,7 +1,7 @@ #!/bin/bash #sleep 1 -#$HOME/bin/disp 4 +#sbl-disp 3 # Do something if at Univ network #if ping ad.helsinki.fi -c 2; then