hackmdio / hackmdio/codimd

Collapsing headers adds a new line

Open
#1,786 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Issue: making an header collapsible adds a white new line, and then the header summary.
To reproduce the issue, you can use the following snippet:
```

Header 1

Just a test.

```

![image](https://user-images.githubusercontent.com/18620868/206213697-9e9b43c6-8ca8-4a0d-96dd-afcfce60d844.png)

![image](https://user-images.githubusercontent.com/18620868/206213827-b64a706c-246c-4801-b330-e47f0d37f6c9.png)

As far as I noticed, this issue is different Markdown editors, except for GitHub, GitLab. I guess it depdends on the different markdown formatting style used by these two. Is it possible to fix this issue?

Below you can see that GitHub formats this snippet correctly:

Header 1

Just a test.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.