Skip to content

Highlight ```rx blocks in Markdown, tag the docs' .rx blocks, add the logo - #45

Merged
ryansolid merged 3 commits into
mainfrom
claude/project-thread-k44bg2
Nov 10, 2026
Merged

ryansolid merged 3 commits into
mainfrom
claude/project-thread-k44bg2

Conversation

@ryansolid

@ryansolid ryansolid commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

This PR makes .rx code in the scenarios, spec and guide highlight when read in VS Code or Cursor, and adds the logo.

Tagging the docs. None of the docs' code blocks had a language, so I tagged 335 of them as ```rx.

  • How blocks were picked: a block is tagged when it parses as .rx with ref/src/parse.ts, ignoring -- reject: / -- module: directive lines. Snippets that only fail on … elisions I tagged by hand.
  • Left bare: grammar productions, CSS fragments, compiler error output and file trees.
  • Runner unchanged: the scenario runner ignores the info string, and ref/run.ts output is byte-identical before and after (121 pass).
  • On GitHub: rx is an unknown language there, so these blocks render exactly as they do today.

Extension 0.1.1

  • Editor: a TextMate injection into Markdown (syntaxes/rx.markdown.tmLanguage.json) highlights ```rx and ```reactivescript fences with the full .rx grammar. It uses the same pattern as Svelte and Vue (markdown-vue).
  • Preview: the preview colours fences with highlight.js, so markdown.js registers an rx language through markdown.markdownItPlugins: TypeScript's language plus the words the .rx grammar highlights. Every other fence still goes to the preview's own highlighter.
  • Language server: because the preview now activates the extension, the language server waits until a .rx file is open before starting.
  • Icon: the extension has its first icon (icon.png), which also serves as the .rx file icon.

Logo. The logo is r = x: assets/logo.svg, plus a header image in the root README. The letters are outlined from JetBrains Mono ExtraBold, so the SVG needs no font. assets/README.md records the colours and sizes so it's easy to change later.

Not verified in a real editor. I couldn't run VS Code here. I checked the preview highlighter's output directly, and node build.js and vsce ls package fine. I couldn't confirm the editor injection with a headless TextMate run, but that harness didn't apply Shiki's own markdown-vue injection either, so it proves nothing in either direction.

Merging publishes the extension 0.1.1 to the Marketplace and Open VSX. The language server stays at 0.1.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_0117BoWPLMLsJjr7WiwaUgvd

335 bare fences whose code parses as .rx (ref/src/parse.ts, directive
lines aside), plus snippets with … elisions read by hand. Grammar
productions, CSS fragments, compiler output and file trees stay bare.
The scenario runner ignores the info string: ref/run.ts output is
identical before and after (121 pass).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWPLMLsJjr7WiwaUgvd
The editor gets a TextMate injection into text.html.markdown that embeds
source.rx, the way Svelte and Vue do it. The preview highlights with
highlight.js, so markdown.js registers an rx language (TypeScript's plus
the words the .rx grammar highlights) through markdown.markdownItPlugins;
other fences keep the preview's own highlighter. Since the preview now
activates the extension, the language server starts only once a .rx
file is open. Extension 0.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWPLMLsJjr7WiwaUgvd
@socket-security

socket-security Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​highlight.js@​11.11.19910010085100

View full report

assets/logo.svg (letters outlined from JetBrains Mono ExtraBold, so no
font is needed), the README header, and the extension's Marketplace and
.rx file icon (tooling/vscode-rx/icon.png, the SVG at 256 px). Ships with
extension 0.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWPLMLsJjr7WiwaUgvd
@ryansolid ryansolid changed the title Highlight ```rx blocks in Markdown, and tag the docs' .rx blocks Highlight ```rx blocks in Markdown, tag the docs' .rx blocks, add the logo Nov 10, 2026
@ryansolid
ryansolid merged commit 5d8dfeb into main Nov 10, 2026
6 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.

2 participants