pi-studio 0.5.16 → 0.5.17
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 +5 -0
- package/index.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to `pi-studio` are documented here.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.5.17] — 2026-03-17
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Studio preview and PDF rendering now accept Markdown lists without a preceding blank line, so common model output like `What I read:\n- item` renders as a real list instead of collapsing into a paragraph.
|
|
11
|
+
|
|
7
12
|
## [0.5.16] — 2026-03-17
|
|
8
13
|
|
|
9
14
|
### Fixed
|
package/index.ts
CHANGED
|
@@ -1590,7 +1590,7 @@ async function preprocessStudioMermaidForPdf(markdown: string, workDir: string):
|
|
|
1590
1590
|
|
|
1591
1591
|
async function renderStudioMarkdownWithPandoc(markdown: string, isLatex?: boolean, resourcePath?: string): Promise<string> {
|
|
1592
1592
|
const pandocCommand = process.env.PANDOC_PATH?.trim() || "pandoc";
|
|
1593
|
-
const inputFormat = isLatex ? "latex" : "markdown+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris-raw_html";
|
|
1593
|
+
const inputFormat = isLatex ? "latex" : "markdown+lists_without_preceding_blankline+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris-raw_html";
|
|
1594
1594
|
const args = ["-f", inputFormat, "-t", "html5", "--mathml", "--wrap=none"];
|
|
1595
1595
|
if (resourcePath) {
|
|
1596
1596
|
args.push(`--resource-path=${resourcePath}`);
|
|
@@ -1819,7 +1819,7 @@ async function renderStudioPdfWithPandoc(
|
|
|
1819
1819
|
};
|
|
1820
1820
|
|
|
1821
1821
|
if (!isLatex && effectiveEditorLanguage === "diff") {
|
|
1822
|
-
const inputFormat = "markdown+tex_math_dollars+autolink_bare_uris+superscript+subscript-raw_html";
|
|
1822
|
+
const inputFormat = "markdown+lists_without_preceding_blankline+tex_math_dollars+autolink_bare_uris+superscript+subscript-raw_html";
|
|
1823
1823
|
const diffMarkdown = prepareStudioPdfMarkdown(markdown, false, effectiveEditorLanguage);
|
|
1824
1824
|
try {
|
|
1825
1825
|
return await runPandocPdfExport(inputFormat, diffMarkdown);
|
|
@@ -1835,7 +1835,7 @@ async function renderStudioPdfWithPandoc(
|
|
|
1835
1835
|
|
|
1836
1836
|
const inputFormat = isLatex
|
|
1837
1837
|
? "latex"
|
|
1838
|
-
: "markdown+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris+superscript+subscript-raw_html";
|
|
1838
|
+
: "markdown+lists_without_preceding_blankline+tex_math_dollars+tex_math_single_backslash+tex_math_double_backslash+autolink_bare_uris+superscript+subscript-raw_html";
|
|
1839
1839
|
const normalizedMarkdown = prepareStudioPdfMarkdown(markdown, isLatex, effectiveEditorLanguage);
|
|
1840
1840
|
|
|
1841
1841
|
const tempDir = join(tmpdir(), `pi-studio-pdf-${Date.now()}-${randomUUID()}`);
|