Closed kno10 closed 7 years ago
Thanks for the pull request. Replacing the InternalErrors with other exceptions is a good thing. However, the solution for the pre problem has to look differently. The parser has to parse the wikitext as it is and must not alter (uppercase -> lowercase) text it finds in the source. Instead the expansion code in the engine has to make a case-insensitive search for a matching tag extension. I experimented on Wikipedia and parser functions are also case in-sensitive. I'll look into the engine code and make sure that both are treated correctly.
These are now two less invasive changes, that simply tolerate <b>
, <i>
and <pre>
in some cases where sweble would fail before. I don't have a nice unit test though.
Outdated (except for the better exceptions).
Resolves #43, and also replaces associated Internal Error messages with more helpful error messages #35 (but not all of them)