WeSearch

Access the properties within Markdown files

·2 min read · 0 reactions · 0 comments · 13 views
#python#markdown#logseq
Access the properties within Markdown files
⚡ TL;DR · AI summary

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.

Key facts
Original article
GitHub
Read full at GitHub →
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.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub