Skip to content

!!![FEATURE] enable basic latex rendering #654

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

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

jaapio
Copy link
Member

@jaapio jaapio commented Nov 3, 2023

To be able to render different formats we needed a more flexible system to pick the correct renderers. The main change in this patch to introduce a OutputAwareDelegatingNodeRenderer as the templates are using a function to render child nodes. Where we lose the connection with the executed renderer.

This new OutputAwareDelegatingNodeRenderer will take the output format from the context to select the correct DelegatingNodeRender that will find the correct renderer on its turn to render the node.

To make it easier to add custom output formats using other format renders, eg. a single page html, or pdf using the html renderers. the compiler for DI is adjusted. This is now a more advanced compiler pass that will autowire the configured renderers as much as possible.

@jaapio jaapio marked this pull request as draft November 3, 2023 16:23
@jaapio jaapio force-pushed the feature/latex-rendering branch from d837af0 to c570165 Compare November 3, 2023 16:35
@jaapio jaapio requested a review from linawolf November 3, 2023 16:36
@jaapio jaapio marked this pull request as ready for review November 3, 2023 16:36
To be able to render different formats we needed a more
flexible system to pick the correct renderers. The main
change in this patch to introduce a OutputAwareDelegatingNodeRenderer
as the templates are using a function to render child nodes. Where
we lose the connection with the executed renderer.

This new OutputAwareDelegatingNodeRenderer will take the output format
from the context to select the correct DelegatingNodeRender that will
find the correct renderer on its turn to render the node.

To make it easier to add custom output formats using other format
renders, eg. a single page html, or pdf using the html renderers.
the compiler for DI is adjusted. This is now a more advanced compiler
pass that will autowire the configured renderers as much as possible.
@jaapio jaapio force-pushed the feature/latex-rendering branch from c570165 to 19a4e8b Compare November 3, 2023 17:49
@jaapio jaapio enabled auto-merge November 3, 2023 17:49
@jaapio jaapio merged commit a413990 into main Nov 3, 2023
@jaapio jaapio deleted the feature/latex-rendering branch November 3, 2023 17:50
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

Successfully merging this pull request may close these issues.

2 participants