zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.88k stars 1.88k forks source link

Unable to export note to sharable document ... for example PDF or Markdown or HTML #1504

Open zDEFz opened 3 years ago

zDEFz commented 3 years ago

Ver 0.45.7 Log: trilium-2020-12-30.log

Screencast:https://streamable.com/22o4so

Basically no export does work properly. The formatting isn't kept and the links aren't working (for the PDF) But I want to share this document with my teacher, would there not be at least one method of exporting it properly? Also tried to copy paste to excel, but it looks so bad.

I had to remove empty lines and re-export, until the PDF text didn't overlap. (CRLF removal) I think.

The idea is that I have something I can share with my teacher, that also points to the resources. If the files aren't included on export and it shows there, at least provide functionality for linking...

zadam commented 3 years ago

Basically no export does work properly. The formatting isn't kept and the links aren't working (for the PDF)

That's not something I can change - PDF export is handled by the OS printing services and they often mangle the content in some way ("optimize for printing").

Also links can't really work within a PDF either.

With Markdown there seems to be a problem with some tables, but it's not clear whether it's a problem on Typora side (wrong parsing) or on Trilium side. Tables on Markdown are not really standardized anyway :( (at least not in commonmark)

HTML export should actually keep more formatting by including CKEditor content styles - this was fixed now.

Also tried to copy paste to excel, but it looks so bad.

Excel sounds like a weird choice, Word would make sense more and should probably keep formatting better.

zDEFz commented 3 years ago

@zadam I tried 4 different markdown editors and none worked properly with the tables! MacDown did displace contents for instance.

Just tried to copy the entire thing, didn't work. Can't copy all at once. Have todo table by table... But even then, it doesn't look like in Trilium...