Pete Bacon Darwin 935ef13096 build(docs-infra): improve directive selector rendering (#25768)
`:not(...)` blocks are now rendered as italic, while the
rest of the selector is bold.

PR Close #25768
2018-10-01 09:36:33 -07:00

15 lines
347 B
HTML

{%- if doc.selector %}
<section class="selector-list">
<h2>Selectors</h2>
{% if doc.selectors %}
{$ doc.selectors | marked $}
{% else %}
<ul>
{%- for selector in doc.selectorArray %}
<li><code>{$ selector | replace(r/(:not\([^()]+\))/g, '<i>$1</i>') $}</code></li>
{% endfor %}
</ul>
{% endif %}
</section>
{% endif %}