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

[FEAT] Multiline flashcards with table inbetween #913

Open
dmantisk opened this issue Mar 22, 2024 · 7 comments
Open

[FEAT] Multiline flashcards with table inbetween #913

dmantisk opened this issue Mar 22, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@dmantisk
Copy link

dmantisk commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
When using tables in multi line flashcards the empty lines enforced by obsidian cuts off the top of the card.

This is how it has to be made

- Question opening
                   <-- Empty line needed to make the table render in obsidian
| a   | b   |
| --- | --- |
| c   | d   |
Question continued
??
Answer

As a result the flash card starts from the table cutting off the 'question opening'

Describe the solution you'd like

  1. A way for multi line flashcards to incorporate/recognize the empty line before tables
  2. A way to manually include an empty line in a multi line card
    2.1. A character/string used before the empty line
    2.2. A character/string to define beginning and ending of the flash card

Additional context
image
A related issue : #122

@dmantisk dmantisk added the enhancement New feature or request label Mar 22, 2024
@dengrish
Copy link

I am dealing with this issue as well. Currently there is essentially no way to include tables into flash card answers as far as I can tell.

@ragrawal
Copy link

ragrawal commented Aug 8, 2024

+1 .. I have a table in the answer section and currently not able to render it

@ronzulu
Copy link
Collaborator

ronzulu commented Aug 8, 2024

Although it hasn't been finalised, there is progress at #1012

@IDZorin
Copy link

IDZorin commented Nov 12, 2024

I think the issue was fixed.
Though, based on issues and documentation it's still open, however I managed to achieve required behavior in flash cards.
@ronzulu to confirm.

Header

??
Question 1
Table
?
Answer
table
+++

@dmantisk
Copy link
Author

I think the issue was fixed. Though, based on issues and documentation it's still open, however I managed to achieve required behavior in flash cards. @ronzulu to confirm.

Header

?? Question 1 Table ? Answer table +++

How did you handle the empty line above the table? Did you wrap it in a callout?

@IDZorin
Copy link

IDZorin commented Nov 12, 2024

Not sure what is a callout, I've recently started using obsidian and spaced repetition.

Here is the full syntax of my example:
example.txt

@dmantisk
Copy link
Author

dmantisk commented Nov 13, 2024

Wow, it looks like having a manually defined 'end' tag for the flashcards (+++ for you) turns the reverse multi line tag into a manual 'start' tag.
@ronzulu I haven't seen this mentioned in the settings, but even if it's a bug it works. I'll hold off on closing this until your verdict.

@IDZorin a callout is a native obsidian feature; Heres's the link to the official website detailing it.
Wraping a table in a callout 'fills in' the empty spaces, so I was using it as a workaround.

Edit: Also, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants