-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: HTML headings that span across multiple lines are now matched
test: Added HTML tests
- Loading branch information
Showing
4 changed files
with
76 additions
and
6 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,25 @@ | ||
<!doctype html> | ||
<!-- simple --> | ||
<h1> | ||
|
||
<br/> | ||
|
||
Title | ||
|
||
|
||
</h1> | ||
|
||
<!-- https://docs.python.org/3/library/re.html --> | ||
<h2>Common Problems<a class="headerlink" href="#common-problems" title="Link to this heading">¶</a></h2> | ||
|
||
<!-- https://www.regular-expressions.info/catastrophic.html --> | ||
<h2>Quickly Matching a Complete HTML File</h2> <p>Another common situation where catastrophic backtracking | ||
|
||
<!-- https://py-pkgs.org/03-how-to-package-a-python --> | ||
<span id=id2></span><h3><span class=section-number>3.1.1. </span>Developing our code<a class=headerlink href=#developing-our-code title="Permalink to this heading">#</a></h3> | ||
|
||
<!-- https://access.redhat.com/documentation/en-us/openshift_container_platform/4.9/html/security_and_compliance/network-bound-disk-encryption-nbde#nbde-tang-server-installation-considerations --> | ||
<h4 id="nav__tools__red-hat-insights"> | ||
<a data-analytics-level="2" data-analytics-category="Tools" data-analytics-text="Red Hat Insights" href="//www.redhat.com/en/technologies/management/insights">Red Hat Insights | ||
</a> | ||
</h4> |
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,39 @@ | ||
<!doctype html> | ||
|
||
<!-- | ||
// ┌───────────────────────────────────────────────────────────────┐ | ||
// │ Contents of html_tags.html │ | ||
// ├───────────────────────────────────────────────────────────────┘ | ||
// │ | ||
// ├──┐Title | ||
// │ ├── Common Problems¶ | ||
// │ └──┐Quickly Matching a Complete HTML File | ||
// │ └──┐3.1.1. Developing our code# | ||
// │ └── Red Hat Insights | ||
// │ | ||
// └─────────────────────────────────────────────────────────────── | ||
--> | ||
<!-- simple --> | ||
<h1> | ||
|
||
<br/> | ||
|
||
Title | ||
|
||
|
||
</h1> | ||
|
||
<!-- https://docs.python.org/3/library/re.html --> | ||
<h2>Common Problems<a class="headerlink" href="#common-problems" title="Link to this heading">¶</a></h2> | ||
|
||
<!-- https://www.regular-expressions.info/catastrophic.html --> | ||
<h2>Quickly Matching a Complete HTML File</h2> <p>Another common situation where catastrophic backtracking | ||
|
||
<!-- https://py-pkgs.org/03-how-to-package-a-python --> | ||
<span id=id2></span><h3><span class=section-number>3.1.1. </span>Developing our code<a class=headerlink href=#developing-our-code title="Permalink to this heading">#</a></h3> | ||
|
||
<!-- https://access.redhat.com/documentation/en-us/openshift_container_platform/4.9/html/security_and_compliance/network-bound-disk-encryption-nbde#nbde-tang-server-installation-considerations --> | ||
<h4 id="nav__tools__red-hat-insights"> | ||
<a data-analytics-level="2" data-analytics-category="Tools" data-analytics-text="Red Hat Insights" href="//www.redhat.com/en/technologies/management/insights">Red Hat Insights | ||
</a> | ||
</h4> |
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