Closed Lonami closed 2 years ago
Hey @Lonami,
thanks for the Info. Would you mind giving me a detailed (minimal) example to reproduce the problem. Afterwards I will create a test and push an updated version.
Darn that was a fast response! Here's an example:
<pre>
should respect this does it?
</pre>
The output of this should be exactly the same, however, it currently turns it into:
<pre> should respect this does it? </pre>
Ah yes - I see. It will take me a while - but there will be an update soon. Thanks for reporting!
The tricky part is recognizing both the opening and closing tag, because there may be arbitrary whitespace between the <
and the tag name, and the tag name should be case insensitive. And I don't know if there's more edge cases we should worry about.
Should be fixed with the newest version. However, I'm not dealing with all the edge cases. What should work is whitespaces between the opening tag <
but its not case insensitive.
I really enjoy the dependency-less aspect of this library, but unfortunately it seems to come with a cost. It removes whitespace from tags which care about it, such as
<pre>
and<code>
.