mdv-live 0.5.0 → 0.5.1

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 CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.1] - 2026-03-20
9
+
10
+ ### Fixed
11
+
12
+ - Edit mode + PDF export bug: exporting PDF while in edit mode produced raw markdown text instead of rendered slides
13
+ - Now auto-exits edit mode before PDF generation
14
+ - Uses `tab.isMarp` fallback for Marp detection when DOM is not yet rendered
15
+
8
16
  ## [0.4.3] - 2026-02-15
9
17
 
10
18
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdv-live",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Markdown Viewer - File tree + Live preview + Marp support + Hot reload",
5
5
  "main": "src/server.js",
6
6
  "bin": {
package/src/static/app.js CHANGED
@@ -1329,7 +1329,12 @@
1329
1329
 
1330
1330
  const tab = state.tabs[state.activeTabIndex];
1331
1331
 
1332
- if (this.isMarpPresentation()) {
1332
+ // editモード中は閉じてからPDF生成
1333
+ if (state.isEditMode) {
1334
+ await EditorManager.toggle();
1335
+ }
1336
+
1337
+ if (tab.isMarp || this.isMarpPresentation()) {
1333
1338
  await this.exportMarpPdf(tab.path);
1334
1339
  } else if (this.isHtmlPreview()) {
1335
1340
  this.printHtmlPreview(tab.name);