Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: feceb9dd7d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const closing = /^<\/([a-z]+)>$/.exec(token.content)?.[1]; | ||
| if (!closing || !counts.get(key(closing, level))) return; |
There was a problem hiding this comment.
Normalize closing tag names before pairing
For valid uppercase or mixed-case HTML such as <STRONG>bold</STRONG>, phrasingTag normalizes the opening name to strong, while this expression captures the closing name as STRONG. The count lookup therefore fails and both tags are displayed as editable source instead of rendering the promised inline formatting. Normalize the captured closing name before using it as a pairing key.
Useful? React with 👍 / 👎.
feceb9d to
d44abac
Compare
d44abac to
296f0c0
Compare
Task list checkboxes pass through instead of becoming raw HTML, so checked items stay checked. Multi-line HTML inside blockquotes and lists keeps its prefixes, HTML that starts a list item stays in the list, and an ::html directive followed by text stays a directive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
HTML blocks the editor can save as Markdown and reload unchanged display as normal content, and tables Docs saves as HTML stay editable. Other HTML blocks become editable source blocks that are saved exactly as typed, including inside blockquotes and lists. An ::html directive followed by text stays a directive. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… lists The lossless check now applies the editor's own load-time newline handling, so HTML whose words would be joined on save stays as source. It ignores only the exact column widths Tiptap writes and keeps tfoot, so footer rows and custom widths are not rewritten. HTML that starts a list item stays inside the item. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A block is displayed as normal content only when it closes every element it opens, and the editor inserts the HTML that was checked rather than the raw source, so an unfinished tag can no longer swallow the rest of the document. The README says such blocks are saved in equivalent form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inline formatting tags such as <strong>, <kbd>, and <sub> display as formatting and keep their exact source. Other inline tags become editable inline source, and <br> stays a line break. Tag pairing runs in linear time, internal markers carry a per-page random value so marker-like text in files or pastes stays plain text, and tables saved as HTML keep their inline HTML's original source. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Inline HTML source is code to the editor: links, bold, and autolinks are kept off it and pastes into it insert plain text. Tags that wrap links or code, sit directly inside emphasis, or would merge with an identical tag stay as editable source instead of formatting. Task list checkboxes pass through, HTML that starts a list item stays in the list, and pasted HTML never becomes raw HTML. One RawHtml extension registers the set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
296f0c0 to
99a1f11
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Human comments
What was wrong
After #5443, inline HTML is still a locked chip showing its literal tags.
<strong>and<kbd>lose their formatting and<br>in a table cell shows as text. When a table is saved as HTML, inline HTML inside it is written as editor placeholder markup instead of its source.What changed
<strong>,<kbd>,<sub>, and<a>display as formatting and keep their exact source.<video>, become editable inline source;<br>stays a line break.RawHtmlextension registers the set. Tag pairing runs in linear time per paragraph.How you verified
2f7047311.296f0c082found four blocking issues;2f7047311fixes them with regression tests.296f0c082passed all seven steps with no console errors.Screenshots · inline HTML
Before:
fac9bea04· After:296f0c082· Captured at 2×Known limitations
href, are edited in the file rather than in the editor.BB-Thread-ID: thr_fashr87x6y
🤖 Generated with Claude Code