Skip to content

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

Open
ChEnylnti wants to merge 1 commit into
kawre:masterfrom
ChEnylnti:fix/escape-raw-less-than
Open

fix(parser): escape raw less-than characters#226
ChEnylnti wants to merge 1 commit into
kawre:masterfrom
ChEnylnti:fix/escape-raw-less-than

Conversation

@ChEnylnti

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant