You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coming out of #955 / #1212, it is now possible for Resource plugins to start opting in to serving pages, like for TypeScript and markdown. With this capability in hand, we should now make the move to moving the markdown capabilities out of the CLI and into its down plugin
Plus, since it's not critical (albeit convenient), we shouldn't tax every user on this. Also, this means users can bring their own markdown plugin system as well.
Details
Instead, we should really be promoting the init package and providing the most useful options as part of the wizard, e.g.
Do you want TypeScript?
Do you want markdown?
Etc
Additionally, we should "open" up the configuration so that options from plugins can be forwarded in, since currently our API looks like this:
I think we'll probably still want to honor frontmatter in the CLI, since as part of #1167 , noticed that frontmatter worked even in HTML, so might be nice to have this shared capability in the CLI. Does that mean we would need couple activeContent with a markdown plugin? Or can something like activeContent stay in the CLI / core?
Additionally, should see if doing a bunch of version bumps ends up resolving #1320
The text was updated successfully, but these errors were encountered:
Summary
Coming out of #955 / #1212, it is now possible for Resource plugins to start opting in to serving pages, like for TypeScript and markdown. With this capability in hand, we should now make the move to moving the markdown capabilities out of the CLI and into its down plugin
While having markdown out of the box is nice, the current dependency list just for markdown right now is quite a lot (7!)
https://github.com/ProjectEvergreen/greenwood/blob/v0.30.0-alpha.2/packages/cli/package.json#L32
Plus, since it's not critical (albeit convenient), we shouldn't tax every user on this. Also, this means users can bring their own markdown plugin system as well.
Details
Instead, we should really be promoting the init package and providing the most useful options as part of the wizard, e.g.
Additionally, we should "open" up the configuration so that options from plugins can be forwarded in, since currently our API looks like this:
But say if we wanted to configure rehype-autolink-headings to append the link icon, there's currently no way to do this, since we just autoload these plugins.
Going forward, we should support something like this
I think we'll probably still want to honor frontmatter in the CLI, since as part of #1167 , noticed that frontmatter worked even in HTML, so might be nice to have this shared capability in the CLI. Does that mean we would need couple
activeContent
with a markdown plugin? Or can something likeactiveContent
stay in the CLI / core?Additionally, should see if doing a bunch of version bumps ends up resolving #1320
The text was updated successfully, but these errors were encountered: