Skip to content
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

Content formats #10

Open
benmerckx opened this issue Jan 31, 2022 · 3 comments
Open

Content formats #10

benmerckx opened this issue Jan 31, 2022 · 3 comments
Milestone

Comments

@benmerckx
Copy link
Member

It would be nice to have a yaml loader which can format rich text as markdown, embedding inner blocks as html:

id: ...
title: My entry
body: |
  # Heading
  
  Some text
  <CodeBlock code="..." />
  More text
@benmerckx benmerckx added this to the rc milestone Jan 31, 2022
@benmerckx
Copy link
Member Author

Alternatively it could be an .md file with the whole body shipped in "frontmatter syntax" ---

@benmerckx benmerckx changed the title Yaml loader Content formats Sep 8, 2022
@benmerckx
Copy link
Member Author

Have a look at kdl: https://github.com/kdl-org/kdl

@benmerckx
Copy link
Member Author

benmerckx commented Jan 25, 2024

I like the way yaml is used in the esbuild docs. It saves us from having to parse both yaml and markdown and would fit alinea content quite well I think:
https://github.com/esbuild/esbuild.github.io/tree/main/src/content

Edit: it does contain some markdown for inline stuff like links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant