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

Glow treats a single whitespace character the same as a double whitespace for paragraph formatting #655

Open
WeCodingNow opened this issue Oct 29, 2024 · 0 comments

Comments

@WeCodingNow
Copy link

Describe the bug

glow renders paragraphs incorrectly

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

  • OS Gentoo
  • Shell zsh
  • Terminal Emulator idk
  • Terminal Multiplexer not sure
  • Locale en_US.UTF-8

To Reproduce
Steps to reproduce the behavior:

  1. Write a markdown in which you attempt to use a single whitespace as a paragraph formatting thing
  2. Render
  3. Observe the paragraph (should not be a paragraph)

Source Code

NOTE: the following source code and screenshots are censored

- Starting up of infrastructure for local development via docker-compose <-- SINGLE WHITESPACE!!
  Usage:  
  1. put CENSORED SDK bundle in repo root, directory should be named `CENSORED`
  2. `make infra/up`
  3. optionally, `make infra/logs` to keep a close look at how things are going
  4. `CENSORED`
  6. if one wants to tear the containers down, `make infra/down`

Make note of a single whitespace at the end of - Starting up of infrastructure for local development via docker-compose . It's a single space!! But it is treated AS IF it is a paragraph formatting double whitespace!!

Expected behavior

This is how GitLab renders this markdown
image

This is how VSCode Markdown Preview renders this markdown
image

Screenshots

This is how glow renders the same markdown
image

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