Number of ul/ol ancestors (Ruby: ancestors.grep(/^[uo]l$/).count).
Ruby: insert(rindex(/\S/)+1, "”") then insert(index(/\S/), "“")