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

New line in listings #550

Closed
smtlmoel opened this issue Oct 17, 2024 · 1 comment
Closed

New line in listings #550

smtlmoel opened this issue Oct 17, 2024 · 1 comment
Labels
question Issue representing a how-to question

Comments

@smtlmoel
Copy link

Hello I have the following Problem. I receive an input that looks like this pattern:

  1. TOPIC
    -**NAME:** test
    -**TIMESTAMP:** 11:00pm

    -**NAME:** abc
    -**TIMESTAMP:** 09:00pm

    The problem is taht the Component gives me the following result:

    1. TOPIC
      • NAME: test
      • TIMESTAMP: 11:00pm
      • NAME: abc
      • TIMESTAMP: 09:00pm

    But i would expect that there is a new line between the list items like

    1. TOPIC
      • NAME: test
      • TIMESTAMP: 11:00pm
        //NEW LINE
      • NAME: abc
      • TIMESTAMP: 09:00pm

    Any ideas how to achieve this or ways to fix it?

@jfcere
Copy link
Owner

jfcere commented Feb 8, 2025

According to the markdown behavior pretty much everywhere I've tried your snippet, they all render the same way, as demonstrated here on GithHub...

1. **TOPIC**
- **NAME:** test
- **TIMESTAMP:** 11:00pm

- **NAME:** abc
- **TIMESTAMP:** 09:00pm

Would give the following:

  1. TOPIC
  • NAME: test

  • TIMESTAMP: 11:00pm

  • NAME: abc

  • TIMESTAMP: 09:00pm

But markdown also allow HTML so you could mixed both to get the desired output...

1. **TOPIC**
- **NAME:** test
- **TIMESTAMP:** 11:00pm<br><br>
- **NAME:** abc
- **TIMESTAMP:** 09:00pm

This would display an empty line where the linebreaks <br><br> are written, as demonstrated here on GithHub:

  1. TOPIC
  • NAME: test
  • TIMESTAMP: 11:00pm

  • NAME: abc
  • TIMESTAMP: 09:00pm

@jfcere jfcere added the question Issue representing a how-to question label Feb 8, 2025
@jfcere jfcere closed this as completed Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue representing a how-to question
Projects
None yet
Development

No branches or pull requests

2 participants