BP Strat Website Images

const files = app.vault.getFiles().filter(f =>
  f.path.startsWith("assets/") &&
  ["png", "jpg", "jpeg", "gif", "webp", "svg"].includes(f.extension)
);

for (const file of files) {
  const src = app.vault.getResourcePath(file);
  
  dv.el("img", "", {
    attr: { src, style: "max-width: 200px; margin: 8px 8px 4px;" }
  });
  
  dv.el("code", `    ![](/${file.path}){: .rounded }`, {
    attr: { style: "display: block; font-size: 8px; margin: 0 8px 16px; color: gray;" }
  });
}