Skip to content

Commit 1097e07

Browse files
committed
documentation: document new trait
1 parent 5c311fe commit 1097e07

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

jekyll/_includes/nt-type-matches.hext

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class='ace-clouds'><div class='ace_static_highlight' style='counter-reset:ace_line 0'><div class='ace_line'><span class='ace_comment'># match paragraphs or headings</span>
2+
</div><div class='ace_line'><span class='ace_keyword'>&#60;*</span><span class='ace_entity ace_name ace_tag'>:type-matches</span>(<span class='ace_entity ace_name ace_tag'>/^(p)$|^(h[1-6])/$</span>)<span class='ace_whitespace'> </span><span class='ace_keyword'>/&#62;</span>
3+
</div><div class='ace_line'><span class='ace_comment'># match &#60;CustomTag&#62; or &#60;custom-tag&#62;</span>
4+
</div><div class='ace_line'><span class='ace_keyword'>&#60;*</span><span class='ace_entity ace_name ace_tag'>:type-matches</span>(<span class='ace_entity ace_name ace_tag'>/^custom[-]?tag$/i</span>)<span class='ace_whitespace'> </span><span class='ace_keyword'>/&#62;</span>
5+
</div></div></div>

jekyll/documentation.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,13 @@ <h3>:not(&lt;:trait&gt;)</h3>
451451
<div class="column">
452452
<pre class="ace-static-hl"><code>{%include nt-not.hext%}</code></pre>
453453
</div>
454+
<div class="column">
455+
<h3>:type-matches(&lt;regex&gt;)</h3>
456+
<p>Select elements with tag names that match the given regex.</p>
457+
</div>
458+
<div class="column">
459+
<pre class="ace-static-hl"><code>{%include nt-type-matches.hext%}</code></pre>
460+
</div>
454461
<div class="column">
455462
<h3>
456463
:first-child<br>

0 commit comments

Comments
 (0)