<h2>{{section.title}}</h2>
{{section.body | markdownify}}
{% for entry in section.entries %}
- <section id="{{entry.title | sanitize}}">
- <h3>
- {{entry.title | markdownify}}
- {% if entry.subtitle %}<small>{{entry.subtitle}}</small>{% endif %}
- </h3>
- {{entry.body | markdownify}}
+ <section>
+ <h3>
+ {{entry.title | markdownify | no_paragraph}}
+ {% if entry.subtitle %}<small>{{entry.subtitle}}</small>{% endif %}
+ </h3>
+ {{entry.body | markdownify}}
- {% if entry.examples %}
- <div>
- {% capture exampleID %}{{ "" | unique }}{% endcapture %}
- <a data-toggle="collapse" href="#example{{exampleID}}">
- <i class="glyphicon glyphicon-chevron-right"></i>
- {% if entry.examples[1] %}Examples{%else%}Example{%endif%}
- </a>
- <div id="example{{exampleID}}" class="collapse">
-
- {% for example in entry.examples %}
- <table class="manual-example">
- <tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
- <tr><th>Input</th><td>{{example.input | escape}}</td></tr>
- {% unless example.output[0] %}
- <tr>
- <th>Output</th>
- <td><i>none</i></td>
- </tr>
- {% endunless %}
- {% for output in example.output %}
- <tr>
- {% if forloop.index == 1 %}
- <th>Output</th>
- {% else %}
- <th></th>
- {% endif %}
- <td>{{output | escape}}</td>
- </tr>
+ {% if entry.examples %}
+ <div>
+ {% capture exampleID %}{{ "" | unique }}{% endcapture %}
+ <a data-toggle="collapse" href="#example{{exampleID}}">
+ <i class="glyphicon glyphicon-chevron-right"></i>
+ {% if entry.examples[1] %}Examples{%else%}Example{%endif%}
+ </a>
+ <div id="example{{exampleID}}" class="collapse">
+ {% for example in entry.examples %}
+ <table class="manual-example">
+ <tr><th></th><td class="jqprogram">jq '{{example.program | escape}}'</td></tr>
+ <tr><th>Input</th><td>{{example.input | escape}}</td></tr>
+ {% unless example.output[0] %}
+ <tr>
+ <th>Output</th>
+ <td><i>none</i></td>
+ </tr>
+ {% endunless %}
+ {% for output in example.output %}
+ <tr>
+ {% if forloop.index == 1 %}
+ <th>Output</th>
+ {% else %}
+ <th></th>
+ {% endif %}
+ <td>{{output | escape}}</td>
+ </tr>
+ {% endfor %}
+ </table>
{% endfor %}
-
- </table>
- {% endfor %}
+ </div>
</div>
- </div>
- {% endif %}
- </section>
+ {% endif %}
+ </section>
{% endfor %}
</section>
{% endfor %}
- <div class="navbar navbar-default navbar-fixed-top">
+ <div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
- <button aria-expanded="false" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="{{root}}/">jq</a>
</div>
- <div style="height: 1px;" aria-expanded="false" class="navbar-collapse collapse" id="nav-collapse">
+ <div class="navbar-collapse collapse" id="nav-collapse">
<ul class="nav navbar-nav">
{% for item in navigation %}
<li {% if item.permalink == permalink %} class="active" {% endif %}>