Repository navigation
Highlight ```rx blocks in Markdown, tag the docs' .rx blocks, add the logo - #45
Merged
Merged
Conversation
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
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes
.rxcode 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..rxwithref/src/parse.ts, ignoring-- reject:/-- module:directive lines. Snippets that only fail on…elisions I tagged by hand.ref/run.tsoutput is byte-identical before and after (121 pass).rxis an unknown language there, so these blocks render exactly as they do today.Extension 0.1.1
syntaxes/rx.markdown.tmLanguage.json) highlights```rxand```reactivescriptfences with the full.rxgrammar. It uses the same pattern as Svelte and Vue (markdown-vue).markdown.jsregisters anrxlanguage throughmarkdown.markdownItPlugins: TypeScript's language plus the words the.rxgrammar highlights. Every other fence still goes to the preview's own highlighter..rxfile is open before starting.icon.png), which also serves as the.rxfile 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.mdrecords 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.jsandvsce lspackage fine. I couldn't confirm the editor injection with a headless TextMate run, but that harness didn't apply Shiki's ownmarkdown-vueinjection 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