Skip to content

FR Produce valid metadata yaml #10

Description

@blaggacao

There might be a better alternative to the current DSL for the metadata

---
Categories:
 - foo
Tags:
 - bar
Created: ...
---

Title 
===

Benefits:

  • metadata is always good
    • eg. render a html static page with all notes classified according to metadata (like a blog post with tags and categories)

Cons:

  • (simple) migration needed

Would solve #4

Activity

  1. changed the title [-]Produce valid metadata yaml[/-] [+]FR Produce valid metadata yaml[/+] on May 14, 2020
  2. rhysd commented on May 15, 2020

    @rhysd
    Owner

    I avoided YAML front matter because it is not a part of markdown (see commonmark spec to know the spec of markdown). It's original extension of some markdown implementation. Some markdown parser does not implement it.

  3. blaggacao commented on May 15, 2020

    @blaggacao
    Author

    I understand and agree, on the other hand, this is still completely valid markdown:

    ---          (horizontal rule)
    Categories:  (normal word)
     - foo       (bullet point list)
    Tags:        (normal word)
     - bar       (bullet point list)
    Created: ... (normal word)
    ---          (horizontal rule)

    So maybe even by the measures of the spec compliance, this is just an alternative way to store metadata which happens to also be parseable form a (quite) wide variety of markdown enhancing tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions