improved paragraph detection in cljs, fixed to use subs