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
Extend functionality to include document types to output solutions and questions at the same time #2
Conversation
Waouh ! I am still amazed by FOSS. |
Hey @MikeLydeamore , |
Hi, Yes, that's the expected results for the div. The reason this is useful is for combining code and text inside the same solution. In the current format, you can include it in a |
Ok, let's merge it and keep the duplication for now.
What do you think? |
Good suggestions, I have added them now. |
Hi @ginolhac, I asked on the Quarto Q&A about ways to do this without duplicating the filter, and it was suggested to use a I've updated the PR and example to reflect the single-extension system. I think this is much cleaner, and also avoids the duplication concerns. |
Awesome @MikeLydeamore ! Truly awesome. Thanks a lot for finding this
|
Based on the Unilur document formats, I have extended the extension to include two different output formats:
This allows
quarto render
to output the two files in one pass, one including a solution and one including only the questions. Unfortunately you can't specify the same output type twice with different chunk options, hence the need for two (almost) identical extensions.I have also updated the lua filter to allow for divs (651a4a8) to better embed text + code, or just text on it's own, or really anything that fits inside a div.
Existing functionality is unchanged, except for the output format. The old YAML options still work even if not including the new output types.