Skip to content
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

How to add an image to Extra field of Cloze? #69

Closed
michaelsjackson opened this issue May 31, 2020 · 7 comments
Closed

How to add an image to Extra field of Cloze? #69

michaelsjackson opened this issue May 31, 2020 · 7 comments

Comments

@michaelsjackson
Copy link

Tried, did not work here. Do you have any working example? Thanks in advance. Adding an image on a basic note is working here, but not in Extra field of cloze.

@c-okelly
Copy link
Owner

c-okelly commented Jun 1, 2020

Hey,

Just tested in but something like this does work:

* {{c1::Joe}} is a great man.
# type=Cloze
** Extra field
** [/path/to/image.jpg]

Though the card won't update once it has been added. So if you initially added the card without the image and then try to re-upload that won't work

@michaelsjackson
Copy link
Author

Can you tool allow also inline images, so nothing directly as header line definition, but as content?
Because the advantage of this style would be you could the those images directly in org-mode for example, you see again org-mode. 😄
The usability would be much better, while designing your content you would always know and see the content, and not having to guess what was this image again. The data would show itself already.

@c-okelly
Copy link
Owner

c-okelly commented Jun 3, 2020

That is a really good point actually. I assume you're using org in Emacs?

@c-okelly
Copy link
Owner

c-okelly commented Jun 3, 2020

I'm going to change add that as a feature request but should be easy enough to imply

@michaelsjackson
Copy link
Author

Yes, org-mode in emacs. Thanks for all the positive additions in future.

@michaelsjackson
Copy link
Author

Tried now, the Extra line is even not necessary, it shows it in Extra field automatically great. Not having the black dot (list element) before the image would be also nice, simpler view, but ok we should ignore this minor aspect and be happy it works at all.

* {{c1::Joe}} is a great man.
# type=Cloze
** [/path/to/image.jpg]

As you wrote main point is modifying a card is not possible, only adding a new one. Having an option to modify later would be not bad, but one can not have everything it seems.

Defining a quick macro converting an inline image to org_to_anki version works nicely, as a transition solution.

@c-okelly
Copy link
Owner

c-okelly commented Jun 3, 2020

I only added the extra line as an example of text. Probably should have been more clear.

You can turn the bullet points off they are just on by default. There is more docs on it here:

https://github.com/c-okelly/org_to_anki/blob/master/documentation/orgReadme.md#html-list-types--list

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

No branches or pull requests

2 participants