Docx Viewer

I implemented (with the help of AI) a plug/library for .docx integration into Silverbullet!

Still needs some work, particularly since I can't seem to prevent it from creating a new tab for .docx when using Silverbullet in a PWA. That said, it works just like @MrMugame's silverbullet-pdf (v1).

It uses docx-preview to render files in-place โ€” the titlebar stays visible and only the editor area is replaced. Supports .docx, .docm, and .dotx; legacy .doc is not supported by the underlying library. Requires network access to jsDelivr on first open.

Install via Library Manager (recommended): run Library: Install and paste:

https://github.com/kailingma/silverbulletmd-docx-viewer/blob/main/PLUG.md

Or add to a meta/config-tagged page:

plugs:
  - "github:kailingma/silverbulletmd-docx-viewer/docxviewer.plug.js"

Repo: GitHub - kailingma/silverbulletmd-docx-viewer ยท GitHub

2 Likes