πŸ““ blocks or markdown

πŸ˜‡ pub: HXPM Public Issues  |   |  Print Markdown

Blocks or Markdown, the eternal question

Aspect Blocks Markdown
Data structure recursive nested string, but we’ll need blocks no matter what.
Pain implement every node supported by my markdown engine. Suck shit if it isn’t supported someone else’s problem this will never go wrong i swearβ„’

i guess what i’m thinking is that i really don’t want to have to hook into the markdown internals (@abf09a82-1361-4e77-9852-39247278d9a7)

Currently we have this garbage:

$ ag '== "table"'
models/note_migrate.go
178:                    } else if m["type"] == "table" {
369:                    } else if m["type"] == "table" {
552:                    } else if m["type"] == "table" {

models/note.go
324:                    } else if m["type"] == "table" {

where new data structures have to be handled in 4 different places (grows linearly with migrations which is insane.)

@{git.commit.embed:f2391d06dab664432be247535edc8a584cf6d26c}

and I don’t want to be duplicating types for every single node so we really want the absolute minimal set of necessary nodes.

  • Markdown
  • 2 Column

Any nodes that can be just plain old markdown, must be. Is there any reason for them not to be plain ol’ markdown?

Here were the types from the readme i wanted support for.

Group Type Fine as Plain Ol’ Markdown?
markdown h1/2/3 βœ…
markdown todo list (automatic subtasks) ?
markdown table βœ…
markdown bullet/numbered βœ…
markdown details/summary βœ… (html in md yea)
markdown blockquote βœ…
markdown code βœ…
markdown divider βœ…
markdown TeX βœ… going to be rendered by mathjax anyway
advanced url (link preview?) ?
advanced image (local) ?
advanced image (external) βœ…
advanced file (embedded) ?
db query table βœ…
db query kanban board βœ…
db query gallery ?
db query list ?
db query calendar ?
db query timeline ?
misc breadcrumbs ?
misc 2/3/4/5 columns ❌ no, this needs custom representation. don’t want to use HTML for this.
misc mermaid βœ… just use code blocks again and mermaid plugin
misc link to person/page/date βœ… currently working @3a319e6a
misc @ a day/time, and then have that show up in queries somehow???? ?

Metadata
Metadata
Key Value
ID PNMR-2eERp0ng
URN urn:penemure:4f07407a-62ba-4842-86bf-d9e111a749e0
Backend πŸ˜‡ pub: HXPM Public Issues
Ancestors
πŸ“… Created
πŸ“… Updated
Links

Children

Queryable fields

View in API
title<a href="/penemure/note/4f07407a-62ba-4842-86bf-d9e111a749e0.html"><span class="title">πŸ““ blocks or markdown</span></a>
parentsurn:penemure:a238ec94-5136-48c5-8567-7d2644fda113 urn:penemure:71596cb9-e3f4-44b4-9b21-974fff7b5201
version2
created_unix1737491282.539209
updated_unix1737491282.539214
namespaceNone
typenote
id4f07407a-62ba-4842-86bf-d9e111a749e0
urnurn:penemure:4f07407a-62ba-4842-86bf-d9e111a749e0
url/penemure/note/4f07407a-62ba-4842-86bf-d9e111a749e0.html
backendpub
created2025-01-21 20:28:02.539209+00:00
updated2025-01-21 20:28:02.539214+00:00
systemFalse
blurbBlocks or Markdown, the eternal question | Aspect | Blocks | Markdown | | --- | --- | --- | | Data structure | rec
title_plainπŸ““ blocks or markdown
title_txtblocks or markdown
final_ancestor_titlesPenemure Development Blog, Penemure
parent_first_titledesign docs
ancestorsurn:penemure:4d9fe953-c4d9-43d5-ba27-d86bd7d0eefe urn:penemure:71596cb9-e3f4-44b4-9b21-974fff7b5201 urn:penemure:a238ec94-5136-48c5-8567-7d2644fda113