{"repo":"dundalek/longdown","free":true,"listed":false,"github":"https://github.com/dundalek/longdown","clone":"git clone https://github.com/dundalek/longdown.git","description":"Convert longform markdown files to outline format used by Logseq","language":"Clojure","stars":50,"topics":["logseq","longform","markdown","outliner"],"license":"0BSD","category":"productivity","readme_excerpt":"Longdown Convert longform markdown files to outline format used by Logseq. Motivation I've been using text editor to write my notes as markdown files and rely on the headings structure to organize long notes. However, when I tried to move my markdown files to Logseq, I faced a problem: the structure wasn't preserved which resulted in a loss of meaning. This tool helps with transition by converting existing longform markdown files to outline format that preserves the structure in a way that fits well for Logseq. Example For example: Gets converted into: Usage Install with: Converting files It is a good idea to make a backup of the input files first before running the script! Specify output directory with -d flag and pass input files: Double-check the output, for example compare using the Meld tool: Converting text snippets Use longdown - to read from standard input and print result to standard output. It can be useful to converting text snippets from clipboard and pasting them directly to Logseq without needing to create intermediate files. For example on Linux: On macOS: Converting HTML Use --html to parse HTML which is useful for copying results to Logseq from web LLM UIs to preserve formatting. Add --strip-highlights option to strip bold formatting which tends to be overused by LLMs. For example: Gets converted into: With --strip-highlights : Library API Longdown can also be used as a library, exposing unified plugins for composing custom pipelines. Available plugins: - rem","default_branch":null,"files":null,"tree":[],"storefront":"/r/dundalek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dundalek/longdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}