Access the properties within Markdown files
LogseqMarkdownParser is a Python script designed to parse Markdown files and access properties of each block. It supports output in JSON and TOML formats and can be used as a command-line tool or Python library. The script allows users to extract tasks and manage properties within Logseq pages effectively.
- ▪LogseqMarkdownParser can load a Markdown file and access properties of each block.
- ▪It supports output in JSON and TOML formats, making it versatile for different use cases.
- ▪The script allows users to extract 'DONE' tasks and manage block properties easily.
Opening excerpt (first ~120 words) tap to expand
LogseqMarkdownParser a simple python script to load a markdown file and easily access the properties of each block etc. You can also parse it as json, handy when using jq. toml output is also supported. You can use it as a cli tol or as a python library. Notes to reader Why make this? I wanted a script that reads a Logseq page, extracts every "DONE" tasks and append it to another file. So I made this little parser. The resulting script can be found in examples/done_mover.py. If you need anything just create an issue. How stable is it? Probably okay, I use it for specific things so things might go south in edge cases. Please open an issue if you found a bug. Note that the github version might be more up to date than the PyPI version Does it take into account the logbook (i.e.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.