Note that this also shows that an (Rails) needs to modify the list only once (assuming that the change is globally required)
* media-tag requires between text (to determine actual tag) (issue #25) * Throw error cases where no 'between_text' is provided (issue #25) * Throw error when the between text is not recognized, so the actual tag cannot be determined * Do not convert tag to text, just because it is not recognized * Do not check for unknown media tags in HTMLTemplate, as it should just thrown an error (which it does now)
The closing tags that do not match are converted to 'text elements', so they are shown by the BBCodeErrorTemplate including the error annotation. When an opening tag does not have a matching closing tag, a mark is added, so the closing tag is not processed (wrongly) by BBCodeErrorTemplate
It is not interesting whether an exception is raised when bbcode validity is checked, but the actual error(s) should be tested there. Whether exceptions are raised or not is placed (back) in the HTML test, as the exceptions should only be raised for the HTML output.
(and add missing img-tag test)