Lexicon type for markdown notes #22
Replies: 4 comments 15 replies
-
i put "mdg" for "mark down graph", but that lexicon name can be changed too, i just wanted to choose something ultra generic that captures both the markdown aspect and the wiki interconnected aspect, but feel free to suggest changes on that too. I was considering "notes" but perhaps that might be used for some sort of community notes thing like twitter has |
Beta Was this translation helpful? Give feedback.
-
Why limit it to markdown? You can add a language attribute that can be markdown, text, etc, because people take notes in different formats. I think it would be useful for performance purposes to store the text in a separate collection and reference by ID from I am also curious about backlinks. I don't quite understand how backlinks would work, and it seems like a fairly complicated issue to solve. |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: I don't feel strongly about this. When I see markdown or html in records, my immediate thought is "that belongs in a blob". If something would be the "front matter" of a markdown file, then it probably belongs in the record itself. Otherwise, I'd lean towards putting anything that would be the "content" of a markdown record into an attached blob. |
Beta Was this translation helpful? Give feedback.
-
An important question here would be how to handle the markdown frontmatter (sample guide). This should probably be separated from the text of the note, as it is metadata and you wouldn't want every consumer to extract it on its own. We're aware of at least 3 types of supported definition languages for markdown frontmatter in popular markdown-based CMSes: yaml, json, and toml. The big questions is:
Generally, if we did 3 then we'd be able to look at the notes and figure out whether they match some traits. For example, we could use that to look up notes featuring "tags" or "title" or "publicationDate" and assume they might be blogposts. However, #15 discusses issues with translating arbitrary JSON to records. I couldn't figure out exactly what the issue was from the discussion, but this would need to be considered. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
From this discussion
We should create a lexicon type that supports markdown style notes, which could be used for things such as syncing your (public) obsidian/logseq notes on your pds, just having a place where people can view your research notes, personal knowledge management, or community wiki's, which people can later build custom front ends for.
Ideally we'd come up with a flexible type that works across these use cases, so that for instance if someone makes a plugin to synchronize notes with a pds, that can ideally be used wether you are just updating your pkm or using it to edit a community wiki.
It could be something as simple as
but i'd love for some input on what to add.
One thing suggested in the discussion was a way to store backlinks, which would work well in the case the user manages the pages, as when you link to another page you own, you can just edit that post in your own repo to add the current record to an extra field that stores back links.
This wouldn't be as easy for the community wiki type use case, as you wouldn't be able to edit someone else's records (and probably shoudln't anyways), but it could just be dealt with the exact same way "likes you receive" or "followers" are now, where you dont actually store those on your pds, but it compiles that for you.
I imagine it shouldn't be too complex as a lot of data is just stored in the YAML frontmatter, and it doesnt require "facets" or "features" like bluesky posts, because it is in markdown already, so the front end can just parse most of the required data from that.
Anyways, drop your suggestions, changes, thoughts, ideas.
Beta Was this translation helpful? Give feedback.
All reactions