Drops the `download` attribute and adds `target="_blank"`. Click now
opens the conversion URL in a new tab; the server's
Content-Disposition: inline routes each format to a sensible
behavior in that tab:
• HTML → renders as a web page
• PDF → opens in the browser's PDF viewer
• DOCX → auto-downloads (browser can't render Office Open XML),
tab is transient
Right-click → "Save Link As" still works for explicit save-to-disk.
Side benefit for debugging: when the conversion endpoint returns
422 or 503, the response body appears as a plain-text page in the
new tab, which is easier to triage than a transient toast.
|
||
|---|---|---|
| .. | ||
| app.js | ||
| download.js | ||
| events.js | ||
| grid.js | ||
| init.js | ||
| loader.js | ||
| preview-markdown.js | ||
| preview.js | ||
| tree.js | ||
| upload.js | ||