<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣᡳ ᠵᠠᠯᠠᠨ</title><description>So fancy is the world, who knows, maybe they sing</description><link>https://blog.overflow.cat/</link><item><title>How to bring JSX into Typst</title><link>https://blog.overflow.cat/posts/typst-jsx/</link><guid isPermaLink="true">https://blog.overflow.cat/posts/typst-jsx/</guid><description>… or any markup language you like.</description><pubDate>Tue, 29 Jul 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&amp;lt;figure&amp;gt;
&amp;lt;video width=&quot;3358&quot; height=&quot;2014&quot; controls poster=&quot;https://remnote-user-data.s3.amazonaws.com/-YIdkWI5rTGJ07x5il3Sy6Z3hYgOlReMLQHZhWaz7cwoDTVyL5RF5t9MclNYnzmJOuf4u5K3cPjyiKwOQX0eDxqiaI_t8w5Bnfu1tpK3ndvrPGbits_ny-ZivOvwMbCE.png&quot;&amp;gt;
&amp;lt;source src=&quot;https://tong.xinshijiededa.men/typst-jsx.mp4&quot; type=&quot;video/mp4&quot; /&amp;gt;
Your browser does not support the video tag.
&amp;lt;/video&amp;gt;
&amp;lt;figcaption class=&quot;text-end mbs-0&quot;&amp;gt;
Typst + &lt;code&gt;react-confetti-explosion&lt;/code&gt;
&amp;lt;/figcaption&amp;gt;
&amp;lt;/figure&amp;gt;&lt;/p&gt;
&lt;p&gt;{/* I&apos;m the author of &lt;code&gt;astro-typst&lt;/code&gt;. Many of you might already be using this Astro integration to build your blogs. The reason I haven&apos;t promoted it on Discord before is that I felt the internal implementation wasn&apos;t quite elegant enough. */}&lt;/p&gt;
&lt;p&gt;For those who may not be familiar, Astro is a web metaframework that excels at building fast, content-focused static websites, including this one.
One of its most powerful features is the integrations system, which allows you to use various frontend frameworks like React, Vue, and Svelte within the same project.
While Typst do have HTML export, writing it by hand is rarely an enjoyable task.
That&apos;s why it&apos;s best to leave the frontend matters to the frontend tools, and why I created &lt;code&gt;astro-typst&lt;/code&gt;, an Astro integration for Typst.&lt;/p&gt;
&lt;p&gt;Even better, as a content-first framework, Astro supports MDX. This means you can import and embed dynamic components directly into your Markdown files. So, how can we bring this capability to other markup languages, such as Typst?&lt;/p&gt;
&lt;h2&gt;Embedding Components in Typst&lt;/h2&gt;
&lt;p&gt;Let me show you the final API first.
To embed a component in your Typst document, you need to add a tiny helper function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#let jsx = s =&amp;gt; html.elem(&quot;script&quot;, attrs: (&quot;data-jsx&quot;: s))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can customize the syntax however you like, just make sure it returns in this format:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// for example, as code block
#let jsx2 = cb =&amp;gt; html.elem(&quot;script&quot;, attrs: (&quot;data-jsx&quot;: cb.text))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, to add an interactive counter component to your page, you would simply write:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#jsx(&quot;import Counter from &apos;../components/Counter.astro&apos;&quot;)
#jsx(&quot;&amp;lt;Counter client:load /&amp;gt;&quot;)

// or:

#jsx2[```jsx
&amp;lt;Counter initialCount={10} message=&apos;typst&apos; /&amp;gt;
```]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is the entire API you need to know. But what happens next is where the magic really begins.&lt;/p&gt;
&lt;h2&gt;The rendering pipeline&lt;/h2&gt;
&lt;p&gt;Let&apos;s first take a look at how Astro&apos;s MD(X) rendering process works — it uses the Unified ecosystem pipeline, which converts content to HTML through three stages: &lt;code&gt;remark&lt;/code&gt;, &lt;code&gt;rehype&lt;/code&gt;, and &lt;code&gt;recma&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MDX
├ remark-parse
├ remark-mdx
├ remark-mark-and-unravel
├ ...settings.remarkPlugins
├ remark-rehype
├ ...settings.rehypePlugins
├ rehype-remove-raw
├ rehype-recma
├ recma-document
├ recma-jsx-rewrite
├ recma-build-jsx
├ recma-build-jsx-transform
├ recma-jsx
├ recma-stringify
├ ...settings.recmaPlugins
JS
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks to the work of &lt;a href=&quot;https://i.myriad-dreamin.com/&quot;&gt;myriad-dreamin&lt;/a&gt;, who added hᴀsᴛ (the abstract syntax tree used by &lt;code&gt;rehype&lt;/code&gt;) output to her &lt;a href=&quot;https://github.com/myriad-dreamin/typst.ts&quot;&gt;typst.ts&lt;/a&gt;, achieving this for Typst became straightforward.
We just need to ensure that the JSX parts are present in the hᴀsᴛ.
Then, we can add a &lt;code&gt;rehype&lt;/code&gt; plugin to transform this hᴀsᴛ into a structure identical to what MDX produces.
By feeding this into the rest of Astro&apos;s pipeline, we can effectively swap out the markup language while achieving the same results.&lt;/p&gt;
&lt;h2&gt;The tag&lt;/h2&gt;
&lt;p&gt;Now, back to the &lt;code&gt;html.elem&lt;/code&gt; we created earlier.
When the Typst compiler processes your document,
the &lt;code&gt;#jsx&lt;/code&gt; function produces a &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag in the intermediate hᴀsᴛ:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;script data-jsx=&quot;&amp;lt;Counter client:load /&amp;gt;&quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This special tag acts as a marker.&lt;/p&gt;
&lt;p&gt;But, how can this tag be processed? The first idea is to fake a similar structure to the MDX parser.
So, I implemented a simple function that traps property access on an object to see which properties were actually being accessed, and added a plugin that prints the AST:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function rehypeStealMdxhast() {
  return function (tree: any, file: any) {
    // Store the tree in the file data for later retrieval
    file.data.mdxhast = JSON.parse(JSON.stringify(tree));
  };
}

...

await compile(mdxContent, {
    outputFormat: &apos;function-body&apos;,
    development: false,
    rehypePlugins: [rehypeStealMdxhast],
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;By adjusting the position of the plugin, we can get the AST at the right time.&lt;/p&gt;
&lt;p&gt;Here is an example of the AST:&lt;/p&gt;
&lt;p&gt;&amp;lt;script src=&quot;https://unpkg.com/@alenaksu/json-viewer@2.1.0/dist/json-viewer.bundle.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;import esTree from &quot;./_estree.json?raw&quot;;&lt;/p&gt;
&lt;p&gt;&amp;lt;json-viewer style=&apos;--font-family: JetBrains Mono,SFMono-Regular,ui-monospace,Menlo,Monaco,Consolas,&quot;Liberation Mono&quot;,&quot;Courier New&quot;,monospace&apos; data={esTree} /&amp;gt;&lt;/p&gt;
&lt;p&gt;I then discovered that the &lt;code&gt;estree&lt;/code&gt; data had already been populated as early as the remark phase. So, no luck, we need to manually parse the JSX string.&lt;/p&gt;
&lt;h2&gt;Parse it, one piece at a time&lt;/h2&gt;
&lt;p&gt;From here, our custom processor, &lt;strong&gt;&lt;code&gt;typstx&lt;/code&gt;&lt;/strong&gt;, which is my &lt;a href=&quot;https://github.com/OverflowCat/hastx/blob/main/packages/mdx/lib/core.js&quot;&gt;fork&lt;/a&gt; of the MDX plugin, takes over.
It walks the hᴀsᴛ looking for these exact &lt;code&gt;&amp;lt;script data-jsx=&quot;...&quot;&amp;gt;&lt;/code&gt; tags.&lt;/p&gt;
&lt;p&gt;For each tag it finds, &lt;code&gt;typstx&lt;/code&gt; initializes a new, self-contained MDX parser to process the JSX string inside the &lt;code&gt;data-jsx&lt;/code&gt; attribute.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const createJsxProcessor = () =&amp;gt; {
  const pipelineJsx = unified()
    .use(remarkParse)
    .use(remarkMdx)
    .use(remarkMarkAndUnravel)
    .use(remarkRehype, {
      allowDangerousHtml: true,
      passThrough: [...nodeTypes]
    })
    .use(hastHastify)

  return pipelineJsx
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This approach is straightforward, though it means a separate parsing process is kicked off for every dynamic component on the page. The parser converts the JSX string into a hᴀsᴛ fragment representing the component.&lt;/p&gt;
&lt;p&gt;The above pipeline is wrapped in another transformer, &lt;code&gt;rehypeTransformJsxInTypst&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;export const rehypeTransformJsxInTypst = () =&amp;gt; {
  // find all html.elem(&quot;script&quot;, attrs: (&quot;data-jsx&quot;: &quot;import Button from &apos;Button.jsx;&apos;&quot;))
  // and transform them to html.elem(&quot;script&quot;, attrs: (&quot;data-jsx&quot;: &quot;import Button from &apos;Button.jsx;&apos;&quot;))
  function compileJsx(node) {
    if (node.type === &apos;element&apos; &amp;amp;&amp;amp; node.tagName === &apos;script&apos;) {
      let hast = jsx2hast(node.properties[&apos;data-jsx&apos;])
      hast = hast.children[0]
      ...
      return hast
    }
    if (node.children) {
      node.children = node.children.map(compileJsx)
    }
    return node
  }

  return function (tree, file) {
    return compileJsx(tree)
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;By recursively calling &lt;code&gt;compileJsx&lt;/code&gt;, we can make sure all the &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags are processed. This new component fragment then replaces the original &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tag in the main hᴀsᴛ tree.&lt;/p&gt;
&lt;h2&gt;No magic, just strings&lt;/h2&gt;
&lt;p&gt;After all tags have been replaced, &lt;code&gt;typstx&lt;/code&gt; turns the AST into a string of a JavaScript module ready for execution.
Astro doesn&apos;t read a list of dependencies; it takes this entire generated script and executes it using its server-side JavaScript runtime.
The runtime&apos;s own module loader then resolves these &lt;code&gt;import&lt;/code&gt; statements, just as it would in any standard &lt;code&gt;.js&lt;/code&gt; or &lt;code&gt;.ts&lt;/code&gt; file.
This is how your components are located and bundled.&lt;/p&gt;
&lt;p&gt;Furthermore, to ensure components render correctly within the Astro ecosystem, &lt;code&gt;typstx&lt;/code&gt; accepts a &lt;code&gt;jsxImportSource&lt;/code&gt; option.
We set this to &lt;code&gt;&apos;astro&apos;&lt;/code&gt;, which tells the compiler to generate code that calls Astro&apos;s specific rendering functions (e.g., from &lt;code&gt;&apos;astro/jsx-runtime&apos;&lt;/code&gt;) instead of another framework&apos;s.&lt;/p&gt;
&lt;p&gt;For further performance gains, this repetitive parsing logic should be eliminated — rehype plugin could be used to transform different import statements directly into an AST object that already includes the &lt;code&gt;estree&lt;/code&gt; data.
But I think the current implementation is more flexible and good enough.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (node.type === &apos;mdxjsEsm&apos; ||
    node.type === &apos;mdxTextExpression&apos; ||
    node.type === &apos;mdxFlowExpression&apos; ||
    node.type === &apos;mdxJsxAttribute&apos; ||
    node.type === &apos;mdxJsxAttributeValueExpression&apos; ||
    node.type === &apos;mdxJsxExpressionAttribute&apos;) { ... }
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;The quirks of &lt;code&gt;unist&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;Another implementation detail is that, it is not that easy to re-use the &lt;code&gt;unist&lt;/code&gt; pipeline. A normal MDX process is from Markdown file to HTML / JSX, which are both file or string, i.e. &lt;code&gt;VFile&lt;/code&gt;.
But, in our case, the input is a JsObject hᴀsᴛ tree created by typst.ts in Rust using N-API.
Also, when creating a MDX parser, we need the output to be an &lt;code&gt;estree&lt;/code&gt; object. Nor is that a string or a &lt;code&gt;VFile&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The two process, from VFile to AST or from AST to string, are what &lt;code&gt;Parser&lt;/code&gt;s and &lt;code&gt;Compiler&lt;/code&gt;s are for.
You may have used the two &lt;code&gt;remark-parse&lt;/code&gt; and &lt;code&gt;rehype-stringify&lt;/code&gt; before.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;| ........................ process ........................... |
| .......... parse ... | ... run ... | ... stringify ..........|

          +--------+                     +----------+
Input -&amp;gt;- | Parser | -&amp;gt;- Syntax Tree -&amp;gt;- | Compiler | -&amp;gt;- Output
          +--------+          |          +----------+
                              X
                              |
                       +--------------+
                       | Transformers |
                       +--------------+
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So, I manually created a fake &lt;code&gt;Parser&lt;/code&gt; and &lt;code&gt;Compiler&lt;/code&gt; to process the hᴀsᴛ tree:&lt;/p&gt;
&lt;p&gt;&amp;lt;figure&amp;gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;let __hast = null
function tryParse() {
  // @ts-ignore
  this.parser = parser
  function parser(_doc, file) {
    if (body) {
      __hast = __hast.children.filter((x) =&amp;gt; x.tagName === &apos;body&apos;)
      __hast = __hast.at(0)
    }
    return __hast
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;lt;figcaption class=&quot;text-end mbs-0&quot;&amp;gt;Yes, since the code is not async, we modify the &lt;code&gt;__hast&lt;/code&gt; every time we call &lt;code&gt;tryParse&lt;/code&gt;.&amp;lt;/figcaption&amp;gt;
&amp;lt;/figure&amp;gt;&lt;/p&gt;
&lt;p&gt;And a fake &lt;code&gt;Compiler&lt;/code&gt; to force unified to think that it has converted the &lt;code&gt;estree&lt;/code&gt; object to a string:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;export default function hastHastify() {
  /** @type {Processor&amp;lt;undefined, undefined, undefined, Root, string&amp;gt;} */
  const self = this

  self.compiler = compiler

  function compiler(tree) {
    return tree
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Enjoy the ecosystem&lt;/h2&gt;
&lt;p&gt;By doing this, we can enjoy the power of the ecosystem:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;While some frontend frameworks don&apos;t natively use JSX syntax, Astro handily converts their output to JSX for us.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We can now (re-)use rehype plugins rather than writing &lt;code&gt;html.elem&lt;/code&gt; everywhere, which is a non-invasive way to enhance the HTML output. For example, I use this to add GitHub-like anchors for headings:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import rehypeAutolinkHeadings, { type Options } from &quot;rehype-autolink-headings&quot;;
export default [
  rehypeAutolinkHeadings,
  {
    content: [
       {
         type: &quot;element&quot;,
         tagName: &quot;span&quot;,
         properties: { className: [&quot;anchor&quot;] },
         children: [{ type: &quot;text&quot;, value: &quot;#&quot; }],
       },
    ],
    behavior: &quot;append&quot;,
  } satisfies Options,
];
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What&apos;s more, you can directly import animated and interactive ECharts components without needing to render them through WASM, which is also more performant. If you want, you can even check the output &lt;code&gt;target&lt;/code&gt; and use &lt;code&gt;json()&lt;/code&gt; to share code between &lt;a href=&quot;https://typst.app/universe/package/echarm/&quot;&gt;echarm&lt;/a&gt; (for PDF output) and your frontend components (for HTML output). The possibilities are endless!&lt;/p&gt;
&lt;h2&gt;Try it out&lt;/h2&gt;
&lt;p&gt;You can see a demo of this in action &lt;a href=&quot;https://typst.overflow.cat&quot;&gt;here&lt;/a&gt;.
Although this feature has been merged into the &lt;code&gt;master&lt;/code&gt; branch, a full hᴀsᴛ-based approach might have performance implications and hasn&apos;t been thoroughly tested yet.&lt;/p&gt;
&lt;p&gt;Theoretically, the same approach can be applied to other markup languages, such as org-mode, as long as they have corresponding hᴀsᴛ generators. Also, supporting other JSX runtimes is possible, but I haven&apos;t tested it yet.&lt;/p&gt;
&lt;p&gt;Anyway, if you&apos;d like to give it a try, you can install the beta version of the npm package. Feedbacks are welcome!&lt;/p&gt;
</content:encoded><category>Typst</category><category>Astro</category><author>OverflowCat</author></item><item><title>A CSS variable, a hidden change in spec, and a VS Code fix</title><link>https://blog.overflow.cat/posts/css-variable/</link><guid isPermaLink="true">https://blog.overflow.cat/posts/css-variable/</guid><description>My friend yzqzss showed me a piece of code found in a GitHub login page’s CSS file when he is working on his GSoC project Zeno: a CSS variable that starts with a digit...</description><pubDate>Mon, 14 Jul 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My friend &lt;a href=&quot;https://github.com/yzqzss&quot;&gt;yzqzss&lt;/a&gt; showed me a piece of code found in a &lt;a href=&quot;https://github.githubassets.com/assets/landing-pages-6fbc3e78c091.css&quot;&gt;GitHub login page&apos;s CSS file&lt;/a&gt; when he is working on his GSoC project &lt;a href=&quot;https://github.com/InternetArchive/Zeno&quot;&gt;Zeno&lt;/a&gt;: a CSS variable that starts with a digit, like &lt;code&gt;--7-grid-columns-minus-last-gap{:css}&lt;/code&gt;. I had no idea this was valid CSS, and it turned out VS Code couldn&apos;t highlight it correctly either.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/170edbc5-bb83-485b-8111-3c9946fcaced&quot; alt=&quot;Current VS Code syntax highlighting fails to recognize it correctly&quot; /&gt;&lt;/p&gt;
&lt;p&gt;After some digging, I found that according to the spec, an identifier (&lt;code&gt;&amp;lt;ident-token&amp;gt;&lt;/code&gt;) cannot start with a number. However, for CSS variables that start with a double dash &lt;code&gt;--&lt;/code&gt;, the name that follows &lt;em&gt;can&lt;/em&gt; start with a digit.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/14bcdf20-05e6-4e36-a201-ae3268e8a237&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Digging through the annals of web standards, I found this syntax change was made in 2014. The W3C made a stealth change without a clear explanation:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Change the definition of ident-like tokens to allow &lt;code&gt;&quot;--&quot;&lt;/code&gt; to start an ident. As part of this, rearrange the ordering of the clauses in the &lt;code&gt;&quot;-&quot;&lt;/code&gt; step of &lt;a href=&quot;https://www.w3.org/TR/css-syntax-3/#consume-a-token&quot;&gt;consume a token&lt;/a&gt; so that &lt;a href=&quot;https://www.w3.org/TR/css-syntax-3/#typedef-cdc-token&quot;&gt;&lt;code&gt;&amp;lt;CDC-token&amp;gt;&lt;/code&gt;&lt;/a&gt;s are recognized as such instead of becoming a -- &lt;a href=&quot;https://www.w3.org/TR/css-syntax-3/#typedef-ident-token&quot;&gt;&lt;code&gt;&amp;lt;ident-token&amp;gt;&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The old formal language was as follows:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/f0be6962-888c-4d83-93b3-ab5cb9b9e7ed&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Then I set out to fix it. VS Code&apos;s grammars use &lt;code&gt;tmLanguage.json&lt;/code&gt;, a format I&apos;m familiar with from my post on &quot;&lt;a href=&quot;https://blog.xinshijiededa.men/harmony/cangjie/ast/&quot;&gt;Transforming the AST of Cangjie Programming Language&lt;/a&gt;&quot;. The built-in grammars are maintained in a separate repository, &lt;a href=&quot;https://github.com/microsoft/vscode-css&quot;&gt;microsoft/vscode-css&lt;/a&gt;. The format isn&apos;t JSON, but CSON from CoffeeScript. But that&apos;s fine; it seems to have some nice string syntax sugar that trims the whitespace between lines in a multi-line string, which is handy for breaking up regular expressions.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  (?:[-a-zA-Z_]    | [^\\x00-\\x7F])     # First letter
  (?:[-a-zA-Z0-9_] | [^\\x00-\\x7F]      # Remainder of identifier
    |\\\\(?:[0-9a-fA-F]{1,6}|.)
  )*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I removed its &quot;First letter&quot; line and changed the &lt;code&gt;*&lt;/code&gt; at the end to a &lt;code&gt;+&lt;/code&gt;. This variable syntax appears in two places: in the definition and in its usage, the latter being directly inside &lt;code&gt;var()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Next was writing tests. The test simply checks if a specific token in a line is what we expect:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;it(&apos;tokenizes custom variables with a leading digit&apos;, function () {
  var tokens;
  tokens = testGrammar.tokenizeLine(&apos;.flex { grid-template-columns: var(--7-grid-columns-minus-last-gap) var(--4-grid-columns); }&apos;).tokens;
  assert.deepStrictEqual(tokens[10], { scopes: [&apos;source.css&apos;, &apos;meta.property-list.css&apos;, &apos;meta.property-value.css&apos;, &apos;meta.function.variable.css&apos;, &apos;variable.argument.css&apos;], value: &apos;--7-grid-columns-minus-last-gap&apos; });
  assert.deepStrictEqual(tokens[15], { scopes: [&apos;source.css&apos;, &apos;meta.property-list.css&apos;, &apos;meta.property-value.css&apos;, &apos;meta.function.variable.css&apos;, &apos;variable.argument.css&apos;], value: &apos;--4-grid-columns&apos; });
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I submitted the &lt;a href=&quot;https://github.com/microsoft/vscode-css/pull/43&quot;&gt;pull request&lt;/a&gt; with an explanation, signed the CLA, and received great feedback:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Thank you for the detailed description and fix!&lt;/p&gt;
&lt;p&gt;LGTM&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Turns out, the two people who approved it only have read-only permissions. It still needs a &lt;em&gt;maintainer&lt;/em&gt;&apos;s approval, so it&apos;s currently stuck. Sigh, corporations.&lt;/p&gt;
</content:encoded><category>CSS</category><author>OverflowCat</author></item><item><title>Test</title><link>https://blog.overflow.cat/posts/test/</link><guid isPermaLink="true">https://blog.overflow.cat/posts/test/</guid><description>Nothing</description><pubDate>Fri, 25 Jul 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&amp;lt;div class=&quot;flex justify-center&quot;&amp;gt;
&amp;lt;div lang=&apos;zh-juai&apos;&amp;gt;&lt;/p&gt;
&lt;p&gt;夜心頭的毛淞子灑落在窗外，&amp;lt;br /&amp;gt;
心上的人這晚子你又在哪塊。&amp;lt;br /&amp;gt;
燈火閃爍笑的笑哀的哀，&amp;lt;br /&amp;gt;
路上的我行走在另一個時代。&amp;lt;br /&amp;gt;
上蒼祂多憐愛，不知者祂不怪，&amp;lt;br /&amp;gt;
耳畔中&lt;a href=&quot;http://www.yangju.cn/audio/qitayinle/2010/0129/14816.html&quot;&gt;撒趟子撂在外&lt;/a&gt;。&amp;lt;br /&amp;gt;
識透了好跟歹，擺心頭莫說出來。&amp;lt;br /&amp;gt;
匆匆地過悠悠等待，&amp;lt;br /&amp;gt;
仰起頭天上清清虹高成七彩。&lt;/p&gt;
&lt;p&gt;哭過的眼望歲月更清楚，&amp;lt;br /&amp;gt;
心頭囥住同你一路上的樂與苦。&amp;lt;br /&amp;gt;
朝楞家在巷子盡頭的深處，&amp;lt;br /&amp;gt;
南柯太守醒來隑到身旁那棵樹。&amp;lt;br /&amp;gt;
縱裡尋千百度，何人在闌珊處，&amp;lt;br /&amp;gt;
哪槓才能留得紅顏駐。&amp;lt;br /&amp;gt;
詞曲新鄉音故，老友嬉童年呼，&amp;lt;br /&amp;gt;
風動帆動人生半途，&amp;lt;br /&amp;gt;
仰起頭天上須臾蒼狗白雲舒。&lt;/p&gt;
&lt;p&gt;早興不覺冷，日暮飛霞渡，&amp;lt;br /&amp;gt;
鬧市歸去霓裳隱隱相忘在江湖。&amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/div&amp;gt;
&amp;lt;div lang=&apos;zh-juai-latn&apos; style=&apos;font-family: Ubuntu, &quot;Noto Sans&quot;, -apple-system, BlinkMacSystemFont, &quot;Segoe UI Adjusted&quot;, &quot;Segoe UI&quot;, &quot;Liberation Sans&quot;, sans-serif&apos;&amp;gt;&lt;/p&gt;
&lt;p&gt;Yìi’xing’teu’dii mó sông’dsê sãlac dsềtsuang wề&amp;lt;br /&amp;gt;
Xing’sang’dii lén dsec wàen’dsê lĩi yèu dsềlã(k)uê&amp;lt;br /&amp;gt;
Den hỗ xiễnsac xiò’dii xiò yê’dii yê&amp;lt;br /&amp;gt;
Lù’sang’dii ỗ xíng dsẽu’dsê lìng’yêc’geu sí dề……&amp;lt;br /&amp;gt;
Sàng tsang ta dô liến yề, bec dsi dsễ ta bec guề&amp;lt;br /&amp;gt;
Ãbuồn dsông &lt;a href=&quot;http://www.yangju.cn/audio/qitayinle/2010/0129/14816.html&quot;&gt;&lt;em&gt;Sa Tàng’dsê Liòdsềwề&lt;/em&gt;&lt;/a&gt;&amp;lt;br /&amp;gt;
Sec tèu’lec hõgen dễ, bễxing’teu mac suôc’tsuec’lê&amp;lt;br /&amp;gt;
Tsôngts’dii gồ, yẽu’y dẽndề,&amp;lt;br /&amp;gt;
Liãngqĩtéu tiên’sang qingq gàng go tsén qiêc tsễ.&amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p&gt;Koc’gồ’dii yãen wàng sùiyuêc gèn qing’tsu&amp;lt;br /&amp;gt;
Xing’teu kàng’dsu tống lĩi yêc lù’sang’dii lac yú kũ&amp;lt;br /&amp;gt;
Dso’len’ga dsề hàng’dsê jìng’teu’dii sen tsù&amp;lt;br /&amp;gt;
Liáen kô tềsẽu xĩnglế kê’do senpang lec kô sù. &amp;lt;br /&amp;gt;
Dsồnglĩ qíng qiên boc dù, hố lén dsề liáen saen tsù.&amp;lt;br /&amp;gt;
Lã’gang tsế lén léu’dec hống yáen dsù.&amp;lt;br /&amp;gt;
Tsí qioc xing xiang ying gù, lõyẽu xi tống liến hu.&amp;lt;br /&amp;gt;
Fông dồng faen dồng, lén sen buồn tú.&amp;lt;br /&amp;gt;
Liãngqĩtéu tiên’sang xu yú tsang gẽu boc yúng su.&amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p&gt;Dsõ’xing bec jiac lẽn, lec mồ fii xiá dù.&amp;lt;br /&amp;gt;
Lòsì gui kìi lí sang yĩngy xiang wàng dsề jiang hú.&amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/p&gt;
</content:encoded><category>Articles</category><author>OverflowCat</author></item></channel></rss>