zachlebar/Annotare — Issue #2: Parse Metadata from Markdown Source Files
Author: zachlebar
Created: 2012-01-31 22:04:14+00:00
State: open

What I'm looking for here is a way to specify additional metadata about a document without needing to pre-define what that metadata is going to be.

Through a syntax extension to normal Markdown, a user can specify things like title, author, date, time, location, tags, etc.

Example:
`# @title: The Adventures of Huck Finn`
`## @author: Mark Twain`
`@tags: #american literature, #huck finn, #mark twain, #mississippi river`

Why I say that these things don't need to be pre-defined is that I envision the way these elements would then be parsed would be in conjunction with the Markdown syntax, except with the inclusion of a `class = ... ` to the element.

Example:
`

The Adventures of Huck Finn

`
`

The Adventures of Huck Finn

`
`

#american literature, #huck finn, #mark twain, #mississippi river

`

What can then be done with CSS is declarations can be declared for elements with these styles associated with them.

Example"
```css
h1 {
. . . base styles . . .
}

h1.title {
. . . additional styles . . .
}
```

I think this allows for maximum flexibility on the part of the user, and also on the part of the designer. Granted, this is coming from one individual who holds both of those perspectives.