Skip to content

fix: strip inline-comment marks before markdown conversion - #71

Closed
danielphan2003 wants to merge 1 commit into
dearlordylord:masterfrom
danielphan2003:fix/inline-comment-markdown
Closed

danielphan2003 wants to merge 1 commit into
dearlordylord:masterfrom
danielphan2003:fix/inline-comment-markdown

Conversation

@danielphan2003

Copy link
Copy Markdown

Summary

  • Fix get_document (and all fetchMarkup markdown paths) failing with No info for mark inline-comment when document content contains Huly inline comments
  • Strip inline-comment ProseMirror marks before @hcengineering/text-markdown serialization while preserving the highlighted text
  • Inline comment thread metadata remains available via the existing list_inline_comments tool

Test plan

  • pnpm check-all passes (2130 tests)
  • New unit tests in test/huly/operations/markup.test.ts for mark stripping and markdown serialization
  • Live get_document against a document with inline comments (teamspace Product Owner, doc 6a100d4f8cc535985f7d2678) returns full markdown content

Made with Cursor

get_document failed on documents with inline comments because
@hcengineering/text-markdown has no serializer for the inline-comment
mark. Strip those marks before serialization while preserving the
highlighted text; thread metadata remains available via list_inline_comments.
@dearlordylord

dearlordylord commented May 28, 2026

Copy link
Copy Markdown
Owner

@danielphan2003 thank you for finding the issue and bringing it to attention. It's likely upstream problem - I opened a PR hcengineering/huly.core#19

as to the PR, I'll use it as an inspiration for local huly-mcp fix; I can't merge it as-is (see what stripInlineCommentMarks does with its argument and with its return, and see how stripInlineCommentMarks usage line names its argument and its return) but the finding is very valuable - thank you for that again

@dearlordylord

Copy link
Copy Markdown
Owner

superseeded by #72

thank you again for pointing the issue and the initial cause analysis @danielphan2003

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.

2 participants