@bobfrankston/msger 0.1.346 → 0.1.347
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 +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,8 +51,11 @@ msger -html "<span style='color:red;background-color:yellow'>Alert!</span>"
|
|
|
51
51
|
msger -url "https://example.com"
|
|
52
52
|
msger -url "file:///path/to/page.html"
|
|
53
53
|
|
|
54
|
-
# Render a local markdown file (
|
|
55
|
-
|
|
54
|
+
# Render a local markdown file — use the mdview wrapper (msger doesn't auto-render .md)
|
|
55
|
+
mdview todo.md
|
|
56
|
+
|
|
57
|
+
# Display arbitrary HTML as a complete page (no template, no buttons) — used by mdview
|
|
58
|
+
msger -raw -html "<!doctype html><html>...</html>"
|
|
56
59
|
|
|
57
60
|
# Load URL with hash fragment
|
|
58
61
|
msger -url "https://example.com" -hash section1
|
|
@@ -258,6 +261,7 @@ Options:
|
|
|
258
261
|
-ontop, --ontop Keep window always on top
|
|
259
262
|
-detach, --detach Launch window independently (parent returns immediately)
|
|
260
263
|
-fullscreen, --fullscreen Start window in fullscreen mode (F11 to toggle, Escape to exit)
|
|
264
|
+
-raw, --raw With -html: load HTML as-is, no msger template/buttons (alias: -full)
|
|
261
265
|
-debug, --debug Return debug info (HTML, size, autoSize) in result
|
|
262
266
|
-v, -version, --version Show version number
|
|
263
267
|
-help, -?, --help Show help message
|
|
@@ -390,6 +394,7 @@ interface MessageBoxOptions {
|
|
|
390
394
|
timeout?: number; // Auto-close after N seconds
|
|
391
395
|
detach?: boolean; // Launch detached from parent process
|
|
392
396
|
fullscreen?: boolean; // Start window in fullscreen mode (F11 to toggle)
|
|
397
|
+
rawHtml?: boolean; // With html: load HTML as-is, no msger template/buttons (used by mdview). CLI: -raw
|
|
393
398
|
debug?: boolean; // Return debug info (HTML, size, autoSize) in result
|
|
394
399
|
}
|
|
395
400
|
```
|