Skip to content

Commit 48f6644

Browse files
fix: restore template placeholders broken by Prettier formatting
Prettier reformatted {{MARKED_JS}}, {{HIGHLIGHT_JS}}, and {{JS}} placeholders in the session export HTML template into multi-line blocks with semicolons: { { MARKED_JS; } } This broke the string .replace() calls in commands-export-session.ts, causing exported sessions to render as empty pages (no JS injected). Restored compact {{PLACEHOLDER}} format and added the template to .prettierignore to prevent recurrence. Fixes #49957
1 parent 4229ffe commit 48f6644

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
docs/.generated/
2+
src/auto-reply/reply/export-html/template.html

src/auto-reply/reply/export-html/template.html

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,17 @@
6060

6161
<!-- Vendored libraries -->
6262
<script>
63-
{
64-
{
65-
MARKED_JS;
66-
}
67-
}
63+
{{MARKED_JS}}
6864
</script>
6965

7066
<!-- highlight.js -->
7167
<script>
72-
{
73-
{
74-
HIGHLIGHT_JS;
75-
}
76-
}
68+
{{HIGHLIGHT_JS}}
7769
</script>
7870

7971
<!-- Main application code -->
8072
<script>
81-
{
82-
{
83-
JS;
84-
}
85-
}
73+
{{JS}}
8674
</script>
8775
</body>
8876
</html>

0 commit comments

Comments
 (0)