-
Notifications
You must be signed in to change notification settings - Fork 66
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
Allow image size to be changed #41
Comments
One possible solution is to use the markdown extension called This commit to my fork of If you are interested in this as a solution to this problem (or any other generic one that attributes might solve), I'm happy to submit a PR. |
Support for attributes in general is a good suggestion. I think I looked at the |
Ok - finished finals for this quarter. If it is possible to change, then I'd suggest not using the I'm ok with creating a new flag and turning on and off attr_list. If you are interested in that PR let me know. If you want to modify attr_list' source, that might require a little more work, and perhaps should be done with pandoc in mind (and I've never used pandoc). |
I've added support in the last commit for Pandoc-style attributes on images. This is similar to |
I think this takes care of this - thanks! Feel free to close this! |
Can anyone provide an example of this working with an actual image file? Specifically changing the image size. I haven't found it in the README or anywhere else. For example, I try below to do a simple modification to an example file in a repo here. In the example, the image files are generated by matplotlib on the fly. My only addition was trying to modify the width of one of the images with
Any time I add the attributes, I get various errors depending on the question type and whether the image is part of the question or answer. Here it gives:
|
@tdstoff The admittedly very short relevant documentation is here: https://github.com/gpoore/text2qti?tab=readme-ov-file#images. The error that you provided is due to the format string. You can either switch to a regular string (remove |
That works, thank you! |
There are times that images on disk aren't the proper size (too big?) to be displayed in the exam. The Canvas quiz-question editor allows one to change the image size by hand. Short of using a full
<img ... .>
tag in your markdown there isn't a way to do that inline in hte markdown.The text was updated successfully, but these errors were encountered: