VNote supports rich and extensible export.
There are four sources to select which notes to export.
We could specify Markdown renderer, Markdown rendering background, Markdown rendering style, and Markdown rendering code block style for the export. For example, we could specify a transparent background when we export PDFs.
We could export a Markdown note as Markdown format. For a note named vnote.md, VNote will create a folder named vnote_md, then copy the vnote.md to this folder, then copy local images of this note, then copy the attachments of this note. After this, we could compress this folder and share it.
When exporting a note as HTML format, VNote will first render the Markdown note and then output the HTML as a file. Advanced settings of HTML format includes:
VNote supports exporting notes as PDF files. Page size and margins are configurable. There are two engines to choose to do the export.
The built-in engine works better with the content, but lacks the bookmark in the generated PDF file.
wkhtmltopdf is a third-party tool to convert HTML to PDF. You need to install this extra tool which will be used by VNote. When using this engine, VNote will first convert the Markdown notes to HTML format, and then call wkhtmltopdf with the generated HTML files as input.
Advanced settings includes:
When choosing this format, VNote will utilize the wkhtmltopdf tool to convert multiple Markdown notes into one PDF file. To make this work well, a good practice in using VNote is to turn on Heading Sequence starting from level 2 and insert the title as level 1 heading for each note.
The Custom format enable users to choose whatever tool they like to process notes.
Advanced settings:
docx, pdf, or ppt.%0: the input files;%1: the output file;%2: the rendering CSS style file to be used;%3: the input file directories;%4: the rendering code block CSS style file to be used;An example to use Pandoc to export notes:
pandoc --resource-path=.:"%3" --css="%2" --css="%4" -s -o "%1" "%0"
::: alert-info
On Windows, you need to change the separator from : to ; according to Pandoc.
:::
If the output suffix is pdf, it will generate the PDF file; if it is docx, it will generate the DOCX file; and if it is pptx, it will generate the PPTX file.