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

(non-forced) line breaks are only ignored in TUI #647

Open
Zocker1999NET opened this issue Sep 8, 2024 · 0 comments
Open

(non-forced) line breaks are only ignored in TUI #647

Zocker1999NET opened this issue Sep 8, 2024 · 0 comments

Comments

@Zocker1999NET
Copy link

Describe the bug
(Non-forced) line breaks are currently only ignored in the TUI, not in the plain output.

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: NixOS 24.05
  • Shell: bash
  • Terminal Emulator: Konsole (KDE)
  • Terminal Multiplexer: none
  • Locale en_US.UTF-8

To Reproduce
Steps to reproduce the behavior:

  1. Render the following markdown with glow

Source Code

# My Awesome Title

Hello,
this is a test paragraph
utilizing line breaks to increase "commitability".
But, everything should be rendered without these specific line breaks
as none of them are forced
via `  ` (two spaces) or `\` (backslash)
at the end of the line.

However, this is a new paragraph.\
And this **is** a forced line break.

Expected behavior

  • expected a paragraph to be rendered without line breaks (other than forced)
  • expected glow output & TUI to behave the same

The expected output for me is how e.g. GitHub renders markdown files in repositories (issues render new lines differently).

Screenshots
From the terminal output:
image

And from the TUI:
image

Additional context
That the hard link break is not correctly parsed is already tracked in #461.

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

1 participant