-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata in 2.0 #729
Comments
I think we don't really want to move much from the frontmatter. As it's easy to collaborate on and people are used to it not just with HedgeDoc, but with other Markdown software as well. I think one could argue, that the All old notes could be imported in the new schema with the Only question with that is: 1 I know there is no real standard, but that's what most people do with markdown. |
Having the metadata inside the note content enables another good thing: Users can easily make backups of their notes including the metadata(!) only by downloading their notes. |
We needed a |
I'm against removing frontmatter. It's the industry standard for meta data in markdown and I think it would confuse more users than help them. But. We could:
|
I think it's no problem to add the metadata if clicking on download button and I think an additional field in the database is no problem. @mrdrogdrog why do you think it is not confusing if we make frontmatter invisible? |
A GUI Editor will come in 2.0 anyway. But the plan is, that this Editor changes the frontmatter to cover beginners and advanced users. I don't see any advantage in removing frontmatter than just breaking with a industrial standard. Also we'll have to implement server side markdown parsing anyway, because if you don't define a title in the meta data, then the first heading is the document title. |
How should the metadata be added? As frontmatter? Then the backend needs to be more aware of the whole frontmatter than before… |
Do you mean because we have to add an function which inaserts it or because of importing notes with frontmatter? |
Both, actually. |
Yes, maybe it's less about the work but more about separation of content and metadata and having no cached data in database. |
I think the discussion is mostly done here: We keep metadata in markdown/YAML and create a GUI to edit that. The remaining question is how we handle legacy notes, but that should probably take place in a separate issue. |
The building of the Metadata GUI is tracked in #2884 |
In the current version of HedgeDoc metadata is specified by adding tags in a section on top of the document. This is done by using front matter in YAML syntax.
An alternative would be to specify the options and metadata by adding database fields and GUI elements.
This has several disadvantages:
Advantages:
We should decide which option we choose for 2.0.
Related issues:
The text was updated successfully, but these errors were encountered: