-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with < and > when attached to a word #236
Comments
The following cases behave as expected: Case 1There is not a missing word < Test > here! converts to: <p>There is not a missing word < Test > here!</p> Case 2There is not a missing word <test> here! converts to: <p>There is not a missing word <test></test> here!</p> The bug lies in in case 3: Case 3There is not a missing word <test here! should be converted to: <p>There is not a missing word <test here!</p> instead it's being converted into: <p>There is not a missing word <test here!<p></test></p> |
Shouldn't it however only change |
Html, namely xhtml, allows custom html tags. |
Update: I'm still working on this bug as it's proving a little more difficult to tackle as first expected. For now, a workaround is to add a space after There is not a missing word < test here! |
thanks for the update |
Do you have an update on this? |
Currently, I couldn't find a simple way of fixing this without rewriting the parsing engine. The problem is that the fix slows down the parsing engine too much, since it requires a bunch of lookaheads. I can't give you a ETA on this, but for now the issue is in "pending" status. |
This issue should be fixed now. Took me a lot of time because I had to rewrite a bit of the parser logic. Here's how it works now: Case 1There is not a missing word < Test > here! converts to: <p>There is not a missing word < Test > here!</p> Case 2There is not a missing word <test> here! converts to: <p>There is not a missing word <test> here!</p> Case 3There is not a missing word test> here! converts to: <p>There is not a missing word test> here!</p> Case 4There is not a missing word <test here! converts to: <p>There is not a missing word <test here!</p> |
Using the below text in markdown
shows
Shouldn't the < and > be converted to < and > ?
This only happens when the < is attached to the word, so
shows as
The text was updated successfully, but these errors were encountered: