GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(texteditor): align markdown output with Perseus grammar by rtibbles · Pull Request #5891 · learningequality/studio Conversation
|
| Screenshot |
|---|
Closes #5887
Test:
Used Claude Code (Opus 4.7) to implement the markdown fix via TDD: failing tests first for both the serializer and preprocessor, then minimal changes. I reviewed each step and supplied the Perseus grammar reference. The EditorToolbar.vue commit was hand-written.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Perseus's simple-markdown (kolibri-perseus-viewer) treats `__text__` as `<u>`, while marked (CommonMark) treats it as `<strong>`. The serializer now emits `__text__` for the underline mark, and `preprocessMarkdown` rewrites `__text__` to `<u>text</u>` before marked sees it so the round-trip back into TipTap preserves underline instead of converting it to bold. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
While I feel less confident about knowing every edge case here, this seems to be working exactly as intended, and the code is quite redable/logical and the comments are helpful.
I was able to verify all 3 criteria through my own testing, although I suppose we should let @pcenov give the final approval in the end. For now, I think this is ready to merge into hotfixes so he can check
(Please do not fret about the confusing bold, super/subscript rendering -- I didn't actually edit the formatting for those, i was writing myself a to-do list of what to check 😹)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.