[GH-ISSUE #754] Export assets (Stylesheet, image attachments) along with a note #393

Closed
opened 2026-03-03 00:20:48 +03:00 by kerem · 1 comment
Owner

Originally created by @Rokt33r on GitHub (Jan 3, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/754

Originally assigned to: @Komediruzecki on GitHub.

When exporting a note as an HTML file or a markdown file, assets used in the note should be exported too.

Current behavior

  • Stylesheets of Syntax highlight and remark-admonitions are not applied to HTML files.
  • Image attachments are not available after exported HTML and markdown files from filesystem-based storage are moved to other devices.
  • The attachments handling behavior when exporting a note should be the same regardless of storage type

Expected behavior

Generate a directory for assets, ${filename}_assets, and export all attachments and stylesheets to the folder like below.

  • exported-note.html
  • exported-note_assets/codemirror.css
  • exported-note_assets/katex.min.css
  • exported-note_assets/remark-admonitions.css
  • exported-note_assets/attachments/XXXXXX.png
  • exported-note_assets/attachments/...

Extra

  • Don't provide Preferences to exporting methods. It is overkill. Each method should receive specific options for what they really need.
  • Don't use editor theme for code syntax highlight theme. Use markdown.codeBlockTheme only.
Originally created by @Rokt33r on GitHub (Jan 3, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/754 Originally assigned to: @Komediruzecki on GitHub. When exporting a note as an HTML file or a markdown file, assets used in the note should be exported too. ## Current behavior - Stylesheets of Syntax highlight and remark-admonitions are not applied to HTML files. - Image attachments are not available after exported HTML and markdown files from filesystem-based storage are moved to other devices. - The attachments handling behavior when exporting a note should be the same regardless of storage type ## Expected behavior Generate a directory for assets, `${filename}_assets`, and export all attachments and stylesheets to the folder like below. - `exported-note.html` - `exported-note_assets/codemirror.css` - `exported-note_assets/katex.min.css` - `exported-note_assets/remark-admonitions.css` - `exported-note_assets/attachments/XXXXXX.png` - `exported-note_assets/attachments/...` ## Extra - Don't provide Preferences to exporting methods. It is overkill. Each method should receive specific options for what they really need. - Don't use editor theme for code syntax highlight theme. Use `markdown.codeBlockTheme` only.
kerem 2026-03-03 00:20:48 +03:00
Author
Owner

@Komediruzecki commented on GitHub (May 18, 2021):

Implemented and released!

<!-- gh-comment-id:843214807 --> @Komediruzecki commented on GitHub (May 18, 2021): Implemented and released!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#393
No description provided.