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] Advanced support for multi-line #881

Closed
jvdevlab opened this issue Feb 19, 2024 · 3 comments
Closed

[FEAT] Advanced support for multi-line #881

jvdevlab opened this issue Feb 19, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@jvdevlab
Copy link

Is your feature request related to a problem? Please describe.
The multi-line support doesn't allow for reach formatting of the answer.

Here is the example of the card I would like to have:

Question?
??
Answer 1

Empty line above

Code Block

More empty lines.

Links to other cards 

The work around I can have right now is to use blockquote

Question?
??
>Answer 1
>
>Empty line above
>
>Code Block
>
>More empty lines.
>
>Links to other cards 

This doesn't make it look nice. I can play with formatting more and don't wrap code block but it would be nice to have better support for multi-line

Describe the solution you'd like

Introduce configurable delimiters for the answer boundaries. By default it could be comments.

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

Empty line above

Code Block

More empty lines.

Links to other cards 

<!--SR:END-->

Thank you.

@jvdevlab jvdevlab added the enhancement New feature or request label Feb 19, 2024
@ronzulu
Copy link
Collaborator

ronzulu commented Feb 20, 2024

Hi @jvdevlab

Thanks for the suggestion.

There are some related features already requested, please see:

The current functionality supports changing the string that separates the question from the answer. I haven't tried it, but I would think that you would be able to change it to <!--SR:START-->.

Note that #601 has support for blank lines in the question as well as the answer:

^^^
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

Is there anything that you are after that would not be supported if #601 is implemented?

Cheers
Ronny

@jvdevlab
Copy link
Author

jvdevlab commented Feb 20, 2024

Hi @ronzulu,

Thank you for the reply. Any solution that would support blank lines will do.

I feel like comments approach will make it be less prone to conflict with other delimiters used in other notes (plugins) and easier to parse.

I did try the comment as a start delimiter.

## Test questions?
<!--SR:START-->
Test answer

It cuts off the beginning of the question

image

But as mentioned above any solution will do.
Thanks

@ronzulu
Copy link
Collaborator

ronzulu commented Feb 21, 2024

Hi @jvdevlab glad we have managed to consolidate functionality at #601.

I'll close this off now, but if there is anything else related you think of, feel free to update that issue.

Cheers
Ronny

@ronzulu ronzulu closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
@ronzulu ronzulu added the duplicate This issue or pull request already exists label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants