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

Allow to include front-matter markdown files #17

Open
stalniy opened this issue May 29, 2020 · 2 comments
Open

Allow to include front-matter markdown files #17

stalniy opened this issue May 29, 2020 · 2 comments

Comments

@stalniy
Copy link

stalniy commented May 29, 2020

Front matter is a special markdown format that eventually is parsed as a JSON or YAML (e.g., https://github.com/jxson/front-matter or https://www.npmjs.com/package/gray-matter). So, it would be cool to have an ability to specify function to use that parses including files, by default it can be yaml.load

What do you think?

@claylo
Copy link
Owner

claylo commented Mar 18, 2024

Hey @stalniy, sorry about the incredibly slow response. Were you thinking this would then allow support for inclusion of Markdown files? I'm not sure what you're looking to accomplish with this feature.

I think I was confused when I initially read your request, and it was in the early days of the pandemic, and ... a lot has happened since then.

Please clarify the goal with this ... from the sound of what you're describing, it might be better as a Markdown processor feature?

@stalniy
Copy link
Author

stalniy commented Mar 18, 2024

Hey,

I don't remember the actual purpose. I guess I wanted to use this for my static website. This is what front matter -> https://dpericich.medium.com/what-is-front-matter-and-how-is-it-used-to-create-dynamic-webpages-9d8dc053b457

Basically this is yaml file but written in more CMS friendly format, its content is separated from yaml config but this is still parsed into JSON object so can be included into yaml resulting object without issues:
https://miro.medium.com/v2/resize:fit:1400/format:webp/1*qzY5XeszpqC13SFiqmJBHg.png

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

2 participants