mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#826
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/652
Author: @Komediruzecki
Created: 10/24/2020
Status: ✅ Merged
Merged: 11/21/2020
Merged by: @Rokt33r
Base:
master← Head:feature/add-export-note-to-pdf📝 Commits (5)
71719c9Add export note to PDF (#243)d2a1d01Refactor export note to PDFd4c6cb8Rename sanitizeNoteName to filenamifyNoteTitle28e7158Fix markdown exporting3a7c833Change export icon📊 Changes
6 files changed (+358 additions, -36 deletions)
View changed files
📝
package-lock.json(+5 -0)📝
package.json(+2 -1)📝
src/components/organisms/NotePageToolbar.tsx(+36 -11)📝
src/electron/index.ts(+6 -0)📝
src/lib/exports.ts(+218 -24)➕
src/lib/styled/styleUtil.ts(+91 -0)📄 Description
Add export note to PDF (3e6abd4f643c3fbecd1f9d74cbda0b267db1b608)
Add export note markdown to PDF in note detail
Add render_md_to_pdf.html file for rendering markdown to HTML first
Add logic for printing to PDF via webContents.printToPdf
Refactor note title sanitization to shared function
Add support for global css style in exports.ts
Add support for wrapping long lines when exporting pre and code through markdown and codemirror sections
Refactor export note to PDF (9f80d9a80178766ba2fb5d9c81602dcd85724dd3)
Refactor code to not use any static HTML file (and thus no javascript, safer for XSS)
Refactor code to be more readable
Reorder menu items for md, html and pdf
Refactor includeFrontMatter fetching
Add support for mathml rendering in PDF export (fix escapes)
Add support for proper header and footer in PDF
Test:
In electron Linux App
In electron Linux App production version (appImage)
Todo:
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.