Skip to content

Commit

Permalink
Merge pull request #879 from notriddle/notriddle/rule-emph
Browse files Browse the repository at this point in the history
Mark `Rule` as a block item
  • Loading branch information
Martin1887 committed Apr 19, 2024
2 parents 6165d35 + d26e07f commit eac0027
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pulldown-cmark/specs/regression.txt
Expand Up @@ -2554,3 +2554,19 @@ ISSUE 867
<p><a href="destination" title="
text ">link</a></p>
````````````````````````````````

ISSUE 878

```````````````````````````````` example
* _
_**
___
^_
.
<ul>
<li>_
_**
<hr />
^_</li>
</ul>
````````````````````````````````
1 change: 1 addition & 0 deletions pulldown-cmark/src/parse.rs
Expand Up @@ -134,6 +134,7 @@ impl ItemBody {
| ItemBody::TableRow
| ItemBody::TableCell
| ItemBody::Heading(..)
| ItemBody::Rule
)
}
}
Expand Down
18 changes: 18 additions & 0 deletions pulldown-cmark/tests/suite/regression.rs
Expand Up @@ -3053,3 +3053,21 @@ text ">link</a></p>

test_markdown_html(original, expected, false, false, false);
}

#[test]
fn regression_test_194() {
let original = r##"* _
_**
___
^_
"##;
let expected = r##"<ul>
<li>_
_**
<hr />
^_</li>
</ul>
"##;

test_markdown_html(original, expected, false, false, false);
}

0 comments on commit eac0027

Please sign in to comment.