fix(parser): escape raw less-than characters #226

Open
ChEnylnti wants to merge 1 commit from ChEnylnti/fix/escape-raw-less-than into master
ChEnylnti commented 2026-06-18 02:05:00 -05:00 (Migrated from github.com)

Summary

Fix rendering of raw less-than characters in problem descriptions.

Some problem descriptions include inline code like <code>k < 0</code>. The raw < can be parsed as the start of an HTML tag, causing the rendered description to drop the < 0 part.

This escapes raw less-than characters before HTML parsing in both the default and CN normalizers.

Verification

  • Verified default parser renders <code>k < 0</code> as k < 0
  • Verified CN parser renders <code>k < 0</code> as k < 0
## Summary Fix rendering of raw less-than characters in problem descriptions. Some problem descriptions include inline code like `<code>k < 0</code>`. The raw `<` can be parsed as the start of an HTML tag, causing the rendered description to drop the `< 0` part. This escapes raw less-than characters before HTML parsing in both the default and CN normalizers. ## Verification - Verified default parser renders `<code>k < 0</code>` as `k < 0` - Verified CN parser renders `<code>k < 0</code>` as `k < 0`
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ChEnylnti/fix/escape-raw-less-than:ChEnylnti/fix/escape-raw-less-than
git switch ChEnylnti/fix/escape-raw-less-than

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff ChEnylnti/fix/escape-raw-less-than
git switch ChEnylnti/fix/escape-raw-less-than
git rebase master
git switch master
git merge --ff-only ChEnylnti/fix/escape-raw-less-than
git switch ChEnylnti/fix/escape-raw-less-than
git rebase master
git switch master
git merge --no-ff ChEnylnti/fix/escape-raw-less-than
git switch master
git merge --squash ChEnylnti/fix/escape-raw-less-than
git switch master
git merge --ff-only ChEnylnti/fix/escape-raw-less-than
git switch master
git merge ChEnylnti/fix/escape-raw-less-than
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
arduinohatesme/leetcode.nvim!226
No description provided.