Fix a string index out-of-bounds issue
Don't allow |s in raw URLs
Be more flexible with ending code blocks