Repository navigation
Replies: 1 comment
Regarding journal links won't matching: maybe I could imagine case-sensitivity being a huge problem. I will need to think about it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Groundwork for a Logseq importer. The plan so far is in
app/docs/logseq-import.md. This post sorts Logseq's syntax into what Pb Notes already renders and what it doesn't, so we can decide what an import has to do with each piece.Pb Notes renders block text with
react-markdown, plusremark-mathand the wikilink plugin inpackages/pages/wikilink.ts. There is noremark-gfm. The Logseq side below is from memory, not checked against Logseq's docs, so corrections are welcome.Works the same in both
[[Page]],#tag,#[[multi word]][label]([[Page]])((uuid)),[label](((uuid)))id::becomes the Pb Notes block id.**bold**,*italic*,`code`, fenced code, quotes, links,$inline$,$$block$$YYYY-MM-DD.Not supported in Pb Notes
Properties (
key:: value), on blocks and pages. Logseq uses them for:id::, which block refs depend oncollapsed::, which waits on the collapsed-subtree decisionalias::, which lets several names point to one pagetitle::,tags::,public::,filters::, and any key you inventTasks:
TODO/DOING/DONE/LATER/NOW/WAITING/CANCELED[#A]prioritiesSCHEDULED:/DEADLINE:with repeaters:LOGBOOK:drawers withCLOCK:linesAll of these would show up as literal text.
Macros:
{{embed [[page]]}},{{embed ((uuid))}}{{query …}}, and#+BEGIN_QUERYqueries{{video}},{{youtube}},{{tweet}},{{cloze}},{{renderer …}}Org-style blocks:
#+BEGIN_NOTE/TIP/WARNING/QUOTE/CENTER.GFM and other inline formatting:
Done~~strike~~- [ ]checkboxesbare URLs turning into linksDoneDone==highlight==/^^highlight^^Other Logseq features:
[[a/b]]works as a link, but there's no tree of child pages)#cardflashcardshls__…).orgfiles../assets/linksTwo catches for the importer
[[Jan 31st, 2024]], in whatever format the graph's:journal/page-title-formatsets. The importer turns the journal files into2024-01-31pages, so if text is copied word for word, those links point to pages that don't exist. The importer will have to rewrite them.[[Mira]]and[[mira]]as one page. Pb Notes only ignores case when searching for a title in[[autocomplete, so a graph that mixes the two would split into two pages. Before the import, we need to pick one: normalise titles on import, or match titles without case.Open questions
All reactions