-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Swap open-vs-close tag order when converting Text to markup. #3163
base: master
Are you sure you want to change the base?
Conversation
I'm torn on whether this is a pleasingly simple solution or a solution that's too simple to possibly be correct. Still, it makes the test pass, so it'll do as a first cut while I decide if I want to make a second, more complex run at it. (Possibly track the order open-tags were rendered to ensure that multiple close-tags at a given offset get popped off in reverse open-tag order?)
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3163 +/- ##
==========================================
- Coverage 98.30% 98.28% -0.03%
==========================================
Files 74 74
Lines 8038 8043 +5
==========================================
+ Hits 7902 7905 +3
- Misses 136 138 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Not convinced this is the solution. Suspect it will only work for the trivial case. More tests might convince me... |
Type of changes
Checklist
Description
Fixes #3155.
(I'm torn on whether this is a pleasingly simple solution or a solution that's too simple to possibly be correct. Still, it makes the test pass while making some improvement on making sure existing tags get closed before new ones are opened. I made an attempt at a more sophisticated effort to more closely track tag opening order and it took things to la-la-land, so I abandoned that and am calling this good enough.)