11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
16.58k stars 480 forks source link

Using MDsveX #538

Closed o-t-w closed 5 years ago

o-t-w commented 5 years ago

I would like to be able to include Svelte components within my Markdown files using MDsveX. Is this possible with 11ty?

jevets commented 5 years ago

@o-t-w

You could try adding plugins to markdown-it or setting your own markdown library instance https://www.11ty.io/docs/languages/markdown/

Aside from that, I don't think you'll be able to work directly with .svelte files in Eleventy quite yet (as far as Eleventy compiling them), at least not until custom template file extensions and handlers/engines are available.

zachleat commented 5 years ago

Yeah that’s at #117. Currently the top issue in the enhancement queue. Please upvote it!

zachleat commented 5 years ago

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with 👍!

zachleat commented 5 years ago

(Also putting this issue in the Enhancement queue, thank you!)

o-t-w commented 4 years ago

Putting this here as reference of another popular static site generators approach https://github.com/gohugoio/hugo/issues/5894