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: two blank lines will be inserted between headings and tags if enable heading-blank-lines with Bottom=true

See original GitHub issue

Describe the Bug

Hi, I usually write diary in this format:

## diary

#study
blah blah blah

#life
blah blah blah

And after linting, there would be two blank lines between ## diary and #study.

How to Reproduce

Steps to reproduce the behavior:

  1. Enable the option heading-blank-lines and Bottom.
  2. Create a note like above.
  3. Lint the file
  4. See two blank lines between heading and tag.

Expected Behavior

Same as input.

Device

  • Desktop
  • Mobile

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
pjkaufmancommented, Nov 17, 2022

This should be fixed on master and in the next release of the plugin. Please let us know if that is not the case.

1reaction
pjkaufmancommented, Nov 17, 2022

Yeah. I see that the issue is ignoring tags when I don’t need to. It also ignores the last whitespace character with it as well which is what is causing the problem. I have a fix that seems to be working that I will push up to master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table of content extra blank line added between heading 2 ...
I am trying to make a table of contents. I am working with main Heading 1s but then also have Heading 2s occasionally....
Read more >
Headings should be surrounded by blank lines · Issue #143 ...
I'd like to configure this warning to: Require a preceding empty line (as it already does) Not requiring a following empty line So...
Read more >
Bug? Confluence inserting blank line at top of page
Is this driving anyone else batty? Very often Confluence will insert a blank line at the top of the page after I've gone...
Read more >
It seems impossible to have 2 blank lines between p tags ...
So, again I want to insert 2 (or any number ) lines instead of 1 between A and B elements without any modification...
Read more >
Using Standard Text Formatting For Headings - WCAG WG
This programmatic layout will enable screen readers to voice blank lines twice before the text that will be considered as a heading.
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