Preserve bold/italic formatting in teacher texts#508
Open
mircealungu wants to merge 2 commits intomasterfrom
Open
Preserve bold/italic formatting in teacher texts#508mircealungu wants to merge 2 commits intomasterfrom
mircealungu wants to merge 2 commits intomasterfrom
Conversation
When teachers use bold/italic in the rich text editor, the inline formatting was lost during tokenization because get_text() strips all HTML tags. This re-parses the article's htmlContent after tokenization to tag individual tokens with is_bold/is_italic flags. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
ArchLens - No architecturally relevant changes to the existing views |
…rd find() - Extract duplicated block tag list into BLOCK_TAGS constant - Filter empty elements in _get_html_block_elements to stay aligned with fragments - Use early-continue when str.find() returns -1 to avoid stalling the cursor Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_text()strips all HTML tagsArticlethat re-parsehtmlContentafter tokenization and tag individual tokens withis_bold/is_italicflagsis_bold/is_italicfields toToken, serialized only whenTrueto minimize payloadNotes
htmlContent<strong>/<em>)Test plan
🤖 Generated with Claude Code