starlight-cannoli-plugins 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,7 +57,7 @@ Automatically compiles fenced `tex compile` and `latex compile` code blocks to S
57
57
  - Compiles LaTeX/TikZ code blocks to SVG automatically
58
58
  - Caches compiled SVGs by content hash (no recompilation if unchanged)
59
59
  - Comprehensive error reporting with line numbers and formatted LaTeX source
60
- - Supports custom preamble via `%---` separator in code blocks
60
+ - Supports custom preamble via `% ===` separator in code blocks
61
61
  - Works seamlessly with Starlight's content pipeline
62
62
  - Requires `svgOutputDir` configuration (no defaults)
63
63
 
@@ -113,13 +113,13 @@ Use either ` ```tex compile ` or ` ```latex compile ` — both work identically:
113
113
 
114
114
  **Custom Preamble:**
115
115
 
116
- Use `%---` to separate custom preamble from diagram content:
116
+ Use `% ===` to separate custom preamble from diagram content:
117
117
 
118
118
  ````markdown
119
119
  ```tex compile
120
120
  \usepackage{tikz-3dplot}
121
121
 
122
- %---
122
+ % ===
123
123
 
124
124
  \begin{tikzpicture}
125
125
  % diagram code here
@@ -129,7 +129,7 @@ Use `%---` to separate custom preamble from diagram content:
129
129
 
130
130
  **Complete Document Control:**
131
131
 
132
- If your code block contains both `\documentclass` and `\begin{document}`, the plugin treats it as a complete, self-contained LaTeX document and uses it as-is without checking for a `%---` separator for a preamble:
132
+ If your code block contains both `\documentclass` and `\begin{document}`, the plugin treats it as a complete, self-contained LaTeX document and uses it as-is without checking for a `% ===` separator for a preamble:
133
133
 
134
134
  ````markdown
135
135
  ```tex compile
@@ -173,7 +173,7 @@ function buildLatexSource(latexCode) {
173
173
  if (latexCode.includes("\\documentclass") && latexCode.includes("\\begin{document}")) {
174
174
  return latexCode.trim();
175
175
  }
176
- const separatorRegex = /%[ \t]*---/;
176
+ const separatorRegex = /%[ \t]*===/;
177
177
  const parts = latexCode.split(separatorRegex);
178
178
  let preamble = "";
179
179
  let content = latexCode.trim();
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  remarkLatexCompile,
9
9
  starlightLatexCompile
10
- } from "./chunk-PRDYMCUY.js";
10
+ } from "./chunk-ETBFVRR2.js";
11
11
 
12
12
  // src/plugins/astro-normalize-paths.ts
13
13
  import { readFileSync, writeFileSync, existsSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  compileLatexToSvg,
3
3
  remarkLatexCompile,
4
4
  starlightLatexCompile
5
- } from "../chunk-PRDYMCUY.js";
5
+ } from "../chunk-ETBFVRR2.js";
6
6
  export {
7
7
  compileLatexToSvg,
8
8
  remarkLatexCompile as default,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  starlightLatexCompile,
3
3
  starlight_plugin_default
4
- } from "../chunk-PRDYMCUY.js";
4
+ } from "../chunk-ETBFVRR2.js";
5
5
  export {
6
6
  starlight_plugin_default as default,
7
7
  starlightLatexCompile
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",