Add CODE-tag processing

This extends the existing "fenced" formatting logic to work with CODE tags. Previously it was only used for NOTE and NOTES tags.