question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Line breaks between lists and horizontal rules are removed when "Remove empty lines between list markers and checklists" is enabled

See original GitHub issue

Describe the Bug

Line breaks between lists and horizontal rules are removed when “Remove empty lines between list markers and checklists” is enabled, if the same character is used for the list item and for the horizontal rule.

How to Reproduce

Given I have "Remove empty lines between list markers and checklists" enabled, and I have Markdown like:

Some text

---

- Some list item 1
- Some list item 2

---

Some more text

When I trigger the linter by saving the file

Then the content is linted like this (notice the line breaks removed between the list and the horizontal rules):

Some text

---
- Some list item 1
- Some list item 2
---

Some more text

Expected Behavior

Given the above example, I would have expected the linter to make no changes.

Screenshots

N/A

Device

  • Desktop
  • Mobile

Additional Context

This can be avoided by ensuring that the punctuation used for adjacent lists and rules is different (e.g. *** and -, or --- and *). But it forces you to change the way you write your Markdown, so it’s not an ideal workaround.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
pjkaufmancommented, Jul 13, 2022

Gotcha. This should be fixed now on master. If the issue is still present there or in the next release, please feel free to let us know and reopen this issue.

1reaction
pjkaufmancommented, Jul 13, 2022

I will go ahead and ignore hr’s/thematic breaks for this to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Line breaks are removed in posts made in plain text format
Method 1 - Disable the feature that removes extra line breaks · Open Outlook. · On the File tab, select Options. · In...
Read more >
R Markdown: Empty line between list items - Stack Overflow
When using ordered lists, I sometimes run into a case where no empty line is added between the list item. That happens after...
Read more >
AsciiDoc Syntax Quick Reference - Asciidoctor Docs
An empty line is required before and after a list to separate it from other blocks. You can force two adjacent lists apart...
Read more >
Mac Release Notes - Things Support - Cultured Code
Fixed a bug where, when Quick Entry was invoked from a space with no Things ... Empty rows are now removed when pasting...
Read more >
no-multiple-empty-lines - ESLint - Pluggable JavaScript Linter
Some developers prefer to have multiple blank lines removed, while others feel that it helps improve readability. Whitespace is useful for separating ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found