make outline-regexp and outline-level calculations more generic (step 1).