Skip to content

Highlight fenced code in native Markdown modes - #9

Merged
devin-ai-integration[bot] merged 2 commits into
masterfrom
devin/1796122570-native-markdown-fence-highlighting
Dec 1, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
masterfrom
devin/1796122570-native-markdown-fence-highlighting

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolve Markdown fence info strings through the native Logseq language catalog. Markdown, GFM and the Markdown body of YAML Frontmatter can highlight fenced code using existing parsers. A fence without a recognized language retains the Markdown parser's existing behavior.

Validation

  • The native catalog regression reproduced the missing JavaScript keyword and number spans before the fix. It passes for Markdown, GFM and YAML Frontmatter with a non-BMP character before the fence.
  • The real macOS SDL/Metal Logseq host rendered const and 42 as plain text with the baseline catalog and as distinct tokens with the candidate. The saved block kept its exact text and highlighting after reopening. The Chrome fixture used Web/master's CodeMirror 5.65.18 and found keyword [0,5) and number [15,17) within the line.
  • Passed dune build @all, dune build @melange-tests, dune runtest and dune runtest --root . from the native integration directory with OCaml 5.5.0.
Native baseline Native candidate Web/master CodeMirror fixture
Plain fence body Highlighted fence body Web fence highlighting

Link to Devin session: https://app.devin.ai/sessions/97b992ac6a93453796bebbf311e43f75
Open in Devin Desktop: https://app.devin.ai/desktop/session/97b992ac6a93453796bebbf311e43f75?variant=devin
Requested by: @tiensonqin


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 4417595 into master Dec 1, 2026
5 checks passed
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