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

More flexible formatting (especially blank lines) for flashcards #601

Open
swehba opened this issue Jan 13, 2023 · 5 comments
Open

More flexible formatting (especially blank lines) for flashcards #601

swehba opened this issue Jan 13, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@swehba
Copy link

swehba commented Jan 13, 2023

Is your feature request related to a problem? Please describe.
The plugin allows multiple line formats for the front and back of flashcards. However, you cannot have any blank lines.

Describe the solution you'd like
Instead of just using a separator between the front and back of a card, use fences to indicate where the front begins, where the front ends and back begins, and where the back ends. Maybe something like this:

^^^
This is the first line of my question.

This is the second line my question.
+++
This is the first line of my answer.

This is the second line of my answer.
vvv

I don't know how the parser works, and admittedly this is a pretty silly solution, but it sure would be nice to have much richer formatting --- including blank lines, headers, etc. --- for the front and back of cards.

I was able to get around this somewhat by appending <br> to the end of each line, but that is a pretty awkward solution.

I also tried the following:

blah blah blah
???
~~~
line 1

line 2
~~~

but the parser sees this as two cards.

Additional context
Add any other context or screenshots about the feature request here.

@swehba swehba added the enhancement New feature or request label Jan 13, 2023
@ronzulu
Copy link
Collaborator

ronzulu commented Feb 9, 2024

Regarding the need for having blank lines, this has similarity to #254.

it sure would be nice to have much richer formatting --- including blank lines, headers, etc. --- for the front and back of cards.

You can include markdown in the card text

For example:

# What is a Route 53 hosted zone?
?
A table associated with a domain (and it's sub domains) with different records for different protocols, and info about how to route such traffic

Is rendered as:

image

Cheers
Ronny

@ronzulu
Copy link
Collaborator

ronzulu commented Feb 20, 2024

Hi potential implementor

Regarding the example format by @swehba

^^^
This is the first line of my question.

This is the second line my question.
+++
This is the first line of my answer.

This is the second line of my answer.
vvv

Note that #881 has an example with longer delimiters:

Question?
<!--SR:START-->
Answer 1

Empty line above

Code Block

More empty lines.

Links to other cards 

<!--SR:END-->

@jvdevlab, I notice that you haven't specified a start delimiter (i.e. prior to the question such as the ^^^ suggested by the OP)

Is that because in your use case you don't need multi-line questions that include blank lines?

How annoying would you find it if you did have to specify a start delimiter? So your example would be something like:

<!--SR:START-->
Question?
<!--SR:ANSWER-->
Answer 1

Empty line above

Code Block

More empty lines.

Links to other cards 

<!--SR:END-->

Cheers
Ronny

@jvdevlab
Copy link

@ronzulu, correct I didn't think of multi-line question as I don't need them in my case. Your example wouldn't be annoying at all. I would prefer it to be this way, as it clearly sets all the boundaries with almost zero chance it conflicting with each other or with the rest of the Obsidian world.

@LeonelRFF
Copy link

Is your feature request related to a problem? Please describe. The plugin allows multiple line formats for the front and back of flashcards. However, you cannot have any blank lines.

Describe the solution you'd like Instead of just using a separator between the front and back of a card, use fences to indicate where the front begins, where the front ends and back begins, and where the back ends. Maybe something like this:

^^^
This is the first line of my question.

This is the second line my question.
+++
This is the first line of my answer.

This is the second line of my answer.
vvv

Hello @swehba, are you looking for something similar to what can already be done with the "Characters denoting the end of clozes and multiline flashcards"?

test.multiple.lines.mp4

@LeonelRFF
Copy link

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

4 participants