pi-studio 0.5.26 → 0.5.28
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/CHANGELOG.md +10 -0
- package/README.md +3 -1
- package/index.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to `pi-studio` are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.5.28] — 2026-03-21
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Refreshed the Studio package description and README opening/docs so they describe Studio more accurately as a two-pane browser workspace for prompt/response editing, annotations, history, live preview, and related workflows, and documented `/studio-current` plus the optional Mermaid CLI requirement for Mermaid PDF rendering.
|
|
11
|
+
|
|
12
|
+
## [0.5.27] — 2026-03-21
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Markdown preview/PDF parsing now also allows ATX headings without a preceding blank line, so patterns like `Paragraph` followed immediately by `# Heading` on the next line are treated as headings rather than plain paragraph text.
|
|
16
|
+
|
|
7
17
|
## [0.5.26] — 2026-03-21
|
|
8
18
|
|
|
9
19
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-studio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Extension for [pi](https://pi.dev) that opens a local two-pane browser workspace for working with prompts, responses, Markdown and LaTeX documents, code files, and other common text-based files side by side. Annotate responses and files, write, edit, and run prompts, browse prompt and response history, request critiques, and use live preview for code, Markdown, and LaTeX.
|
|
4
4
|
|
|
5
5
|
## Screenshots
|
|
6
6
|
|
|
@@ -42,6 +42,7 @@ Experimental extension for [pi](https://github.com/badlogic/pi-mono) that opens
|
|
|
42
42
|
| `/studio --status` | Show studio server status |
|
|
43
43
|
| `/studio --stop` | Stop studio server |
|
|
44
44
|
| `/studio --help` | Show help |
|
|
45
|
+
| `/studio-current <path>` | Load a file into currently open Studio tab(s) without opening a new browser window |
|
|
45
46
|
| `/studio-pdf <path>` | Export a local file to `<name>.studio.pdf` via the Studio PDF pipeline |
|
|
46
47
|
|
|
47
48
|
## Install
|
|
@@ -68,6 +69,7 @@ pi -e https://github.com/omaclaren/pi-studio
|
|
|
68
69
|
- Full preview/PDF quality depends on `pandoc` (and `xelatex` for PDF):
|
|
69
70
|
- `brew install pandoc`
|
|
70
71
|
- install TeX Live/MacTeX for PDF export
|
|
72
|
+
- Mermaid diagrams in exported PDFs may also require Mermaid CLI (`mmdc` / `@mermaid-js/mermaid-cli`) when you want diagram blocks rendered as diagrams rather than left as code.
|
|
71
73
|
|
|
72
74
|
## License
|
|
73
75
|
|
package/index.ts
CHANGED
|
@@ -2802,7 +2802,7 @@ async function renderStudioMarkdownWithPandoc(markdown: string, isLatex?: boolea
|
|
|
2802
2802
|
const sourceWithResolvedRefs = isLatex
|
|
2803
2803
|
? preprocessStudioLatexReferences(latexAlgorithmPreviewTransform.markdown, sourcePath, resourcePath)
|
|
2804
2804
|
: markdown;
|
|
2805
|
-
const inputFormat = isLatex ? "latex" : "markdown+lists_without_preceding_blankline-blank_before_blockquote+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris-raw_html";
|
|
2805
|
+
const inputFormat = isLatex ? "latex" : "markdown+lists_without_preceding_blankline-blank_before_blockquote-blank_before_header+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris-raw_html";
|
|
2806
2806
|
const bibliographyArgs = buildStudioPandocBibliographyArgs(markdown, isLatex, resourcePath);
|
|
2807
2807
|
const args = ["-f", inputFormat, "-t", "html5", "--mathml", "--wrap=none", ...bibliographyArgs];
|
|
2808
2808
|
if (resourcePath) {
|
|
@@ -3208,7 +3208,7 @@ async function renderStudioPdfWithPandoc(
|
|
|
3208
3208
|
}
|
|
3209
3209
|
|
|
3210
3210
|
if (!isLatex && effectiveEditorLanguage === "diff") {
|
|
3211
|
-
const inputFormat = "markdown+lists_without_preceding_blankline-blank_before_blockquote+tex_math_dollars+autolink_bare_uris+superscript+subscript-raw_html";
|
|
3211
|
+
const inputFormat = "markdown+lists_without_preceding_blankline-blank_before_blockquote-blank_before_header+tex_math_dollars+autolink_bare_uris+superscript+subscript-raw_html";
|
|
3212
3212
|
const diffMarkdown = prepareStudioPdfMarkdown(markdown, false, effectiveEditorLanguage);
|
|
3213
3213
|
try {
|
|
3214
3214
|
return await runPandocPdfExport(inputFormat, diffMarkdown);
|
|
@@ -3224,7 +3224,7 @@ async function renderStudioPdfWithPandoc(
|
|
|
3224
3224
|
|
|
3225
3225
|
const inputFormat = isLatex
|
|
3226
3226
|
? "latex"
|
|
3227
|
-
: "markdown+lists_without_preceding_blankline-blank_before_blockquote+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris+superscript+subscript-raw_html";
|
|
3227
|
+
: "markdown+lists_without_preceding_blankline-blank_before_blockquote-blank_before_header+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris+superscript+subscript-raw_html";
|
|
3228
3228
|
const normalizedMarkdown = prepareStudioPdfMarkdown(sourceWithResolvedRefs, isLatex, effectiveEditorLanguage);
|
|
3229
3229
|
|
|
3230
3230
|
const tempDir = join(tmpdir(), `pi-studio-pdf-${Date.now()}-${randomUUID()}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-studio",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.28",
|
|
4
|
+
"description": "Two-pane browser workspace for pi with prompt/response editing, annotations, critiques, prompt/response history, and live Markdown/LaTeX/code preview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|