make BBCode [code] block tag detection more reliable. closes #115