-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Discussion] New renderers design #149
Comments
So, different I'm thinking of examples such as,
|
Yes, that's the idea. :) |
@gambhiro I have updated the first post because I noticed that I hadn't written down my thoughts about this part yet. I hope this clarifies some things. :) |
It seems the key here is to design the data flow between:
Remembering that a new renderer will probably want to store more data (in the summary? in a renderer specific file?) -- and that data has to make it to the page templates somehow. |
The idea, is to separate mdBook into more clearly defined "modules". (not Rust modules)
Renderers could need additional metadata or offer specific settings that could (and should) not be represented in the core internal representation. For that purpose, the configuration file will allow sub-sections for the renderer specific options. Imagine:
Those configuration parameters will be passed down to the renderer, it's his job to actually make sense of those settings.
Essentially
MDBook
+[outputs.renderer]
=>Renderer
=Output
The text was updated successfully, but these errors were encountered: