-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix support for <hr> tags getting butchered (#10)
- Loading branch information
Showing
3 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# See https://github.com/allejo/jekyll-anchor-headings/issues/9 | ||
--- | ||
|
||
{% capture markdown %} | ||
Starting content | ||
|
||
# Heading 1 | ||
|
||
I can show you the world | ||
|
||
--- | ||
|
||
...or maybe not. | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
<div> | ||
{% include anchor_headings.html html=text %} | ||
</div> | ||
|
||
<!-- /// --> | ||
|
||
<div> | ||
<p>Starting content</p> | ||
<h1 id="heading-1">Heading 1 <a href="#heading-1"></a></h1> | ||
<p>I can show you the world</p> | ||
<hr /> | ||
<p>…or maybe not.</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# See https://github.com/allejo/jekyll-anchor-headings/issues/9 | ||
--- | ||
|
||
{% capture markdown %} | ||
Some introduction paragraph | ||
|
||
<header> | ||
some header | ||
</header> | ||
|
||
# Hello World | ||
|
||
<head> | ||
this shouldn't ever been in HTML, but it shouldn't break either | ||
</head> | ||
|
||
<hgroup>I can see the future</hgroup> | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
<div> | ||
{% include anchor_headings.html html=text %} | ||
</div> | ||
|
||
<!-- /// --> | ||
|
||
<div> | ||
<p>Some introduction paragraph</p> | ||
<header>some header</header> | ||
<h1 id="hello-world">Hello World <a href="#hello-world"></a></h1> | ||
<head>this shouldn't ever been in HTML, but it shouldn't break either</head> | ||
<hgroup>I can see the future</hgroup> | ||
</div> |