-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support MDJS in Pages #26
Comments
Currently, this plugin uses the I don't know much about I think support for something like this would be possible, but not trivial to implement. TypeDoc has an internal plugin that exposes a Handlebars helper to allow theme templates to render Markdown: https://github.com/TypeStrong/typedoc/blob/dc965b9be0bf17bbfe1a581b0e88eafd16ebd919/src/lib/output/plugins/MarkedPlugin.ts This plugin uses that in It seems like the best way to approach this would be to first update This is complicated by the fact that, currently, custom themes need to implement their own version of this Handlebars template and they would need to make the same updates to switch from the current TypeDoc-driven Handlebars helper to a new plugin-provided helper. That would be a breaking change. All of the above certainly seems doable, but it needs to be planned out well and released carefully. It feels like it might be best to hold on this feature until HTML-page support and custom theme documentation is finished. |
I wonder if progress to 0.20 at TypeStrong/typedoc#1364 will affect things |
@bennypowers I haven't been keeping a super close eye on this work, but I'll take a look when I get a chance. Is there something in that release in particular that you think will be relevant? |
There's some changes to the default theme, for one. I'm not familiar enough with the APIs to say if or how big of a breaking change there is |
Hello!
open-wc publishes a package called mdjs which allows for executing JS in plain markdown. It includes support for storybook component-story-format stories as well:
This would be quite nice to have in typedoc pages, letting users turn their pages into fully interactive demos.
What do you think of the idea?
The text was updated successfully, but these errors were encountered: