Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Bug with <h4>Something</h4> and empty line right after #47

Open
ghost opened this issue Jul 4, 2018 · 1 comment
Open

Bug with <h4>Something</h4> and empty line right after #47

ghost opened this issue Jul 4, 2018 · 1 comment
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jul 4, 2018

Hello!

I was writing a markdown and compiling it with Stylemark normally. However, the page started to translate some code blocks into <code> elements instead of the i-code block. I did some tests and apparently, this bug needs a <h4>Something</h4> followed by an empty line in order to work.

An example:

---base.html
<table>
  <tbody>
    <tr>
      <td class="fs-5 tc">
        <button class="btn">Base Default</button>
      </td>
      <td class="fs-5 tl">.btn</td>
    </tr>
    <tr>
      <td class="fs-5 tc">
        <button class=btn" disabled>Base Default</button>
      </td>
      <td class="fs-5 tl">.btn [disabled]</td>
    </tr>
  </tbody>
</table>
---

<h4>Test</h4>

Test

Obs.: I put '---' just to indicate a code inside .md

This results in breaking some of the code blocks in the page. I tried the same thing with h1, h2, h3, h5 and h6. Apparently, it only works with <h4>

<h4>Test</h4>
Test

This code will not break the page since it doesn't have an empty line being followed by the <h4> line.

To solve this problem, I just used <h3> instead, but I think it is important to report it.

@mpetrovich
Copy link
Owner

This sounds very strange indeed. We’ll investigate soon.

@mpetrovich mpetrovich added the bug label Aug 8, 2018
@mpetrovich mpetrovich added this to the 3.x milestone Aug 8, 2018
@mpetrovich mpetrovich removed this from the 3.x milestone Oct 23, 2018
@mpetrovich mpetrovich added this to the v4.0 milestone Dec 30, 2019
@mpetrovich mpetrovich reopened this Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant