Tool to turn raw Logseq Markdown files (with
public:: page property) into Markdown blog posts with front matter.
- Takes Logseq page properties (
title:: Hello world) and turns them into Front Matter properties
title: Hello World.
- Changes the Markdown syntax to remove the top-level bullet points.
- Download the latest binary for your OS in the Releases page
go install github.com/viktomas/[email protected]if you have Go installed
logseq-extractor -blogFolder string [MANDATORY] Folder where all public pages are exported. -graphPath string [MANDATORY] Path to the root of your logseq graph containing /pages and /journals directories. -unquotedProperties string comma-separated list of logseq page properties that won't be quoted in the markdown frontmatter, e.g. 'date,public,slug'
Logseq page properties with a special meaning (all optional)
public– as soon as this page property is present (regardless of value), the page gets exported
slugused as a file name
dateit’s used as a file name prefix
folderthe page is going to be exported in this subfolder e.g.
folderproperty always uses
/(forward slash) but on Windows, it gets translated to
\in folder path
- if the base export folder is
folderpage property is
b/c, then the resulting page will be in
--- date: 2022-09-25 categories: "category" public: true slug: test-page folder: "content/posts" --- This is an example paragraph - Second level means bullet points - `logseq-extractor` also supports multi-level bullet points ```ts const v = "Hello world" ``` You can also have Multi-line strings