I'm working on my own file format, this is what blockquotes look like

I'm making my own Markdown/MDX replacement. Just added an "about" attribute to my blockquotes today. Pretty happy with the way things are shaping up.

4 points · 2 comments · view on lemmy.world

2 Comments

virku@lemmy.world · 4 pts · 2y (1 reply)

So uh. How do you end the quote?

TheIdOfAlan@lemmy.world · 1 pts · 2y

huh, yeah, that's not at all obvious is it 😜

The format is made up with sections that start with either the beginning of the file or an empty line followed by two dashes and a section name. Attributes are zero or more lines under the initial starting header with key/value pairs. Most sections have content, but some don't (e.g. metadata) which goes below and continues until you hit another section header or the end of the file . A page might look like:

-- title

This Is A Page


-- blockquote
-- by: Some Person

This is what they said

With some more lines


-- metadata
-- date: 2023-12-31T18:02:07