Skip to content

Highlight Markdown filters in native Slim - #10

Merged
devin-ai-integration[bot] merged 2 commits into
masterfrom
devin/1796200857-slim-markdown-filter
Dec 2, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
masterfrom
devin/1796200857-slim-markdown-filter

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Highlight Markdown inside Slim's markdown: filter using the native CommonMark parser. Strip the filter margin while preserving UTF-16 source offsets. A shallower line resumes Slim parsing. The Logseq catalog resolves named languages inside Markdown fences and keeps multiline template regions active across omitted margins.

Validation

  • Catalog regressions cover headings, a link containing a non-BMP character, blockquotes, JavaScript fences, a JavaScript filter inside a fenced Slim sample, and dedent back to Slim.
  • Local dune build @all, dune runtest, dune build @melange-tests, and the native catalog build and tests passed.
  • Paired signed macOS SDL3/Metal builds used Logseq c4767da822, LUI df03d650, and CodeMirror ML core 441759535. The follow-up retest verified the final linker used catalog b26ff0b and that nested code copied byte for byte.
  • The local browser reference used the CodeMirror 5.65.18 modes loaded by Web/master. Headings, URLs, delimiters, and filter labels retain some palette and span differences.
Native baseline Native after
Plain Markdown content in the Slim baseline Markdown highlighting inside the Slim filter
Native nested fixture Local CodeMirror 5 reference
JavaScript filter highlighted inside a Slim fence Same nested fixture in CodeMirror 5.65.18

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 be990d0 into master Dec 2, 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