Add support for native Org dates in frontmatter

This commit is contained in:
Sebastian Boehm 2020-06-26 23:52:12 +02:00 committed by Bjørn Erik Pedersen
parent 127d5feb32
commit c66dc6c74f
2 changed files with 12 additions and 0 deletions

View file

@ -69,6 +69,7 @@ func TestUnmarshalToInterface(t *testing.T) {
{`[ "Brecker", "Blake", "Redman" ]`, JSON, []interface{}{"Brecker", "Blake", "Redman"}},
{`{ "a": "b" }`, JSON, expect},
{`#+a: b`, ORG, expect},
{`#+DATE: <2020-06-26 Fri>`, ORG, map[string]interface{}{"date": "2020-06-26"}},
{`a = "b"`, TOML, expect},
{`a: "b"`, YAML, expect},
{`a,b,c`, CSV, [][]string{{"a", "b", "c"}}},