Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In <a href="http://johnmacfarlane.net/pandoc/" rel="noreferrer">pandoc</a>, if you use the option <code>--toc</code> in producing html, a table of contents will be produced with links to the sections, and back to the table of contents from the section headings. It is similar with the other formats pandoc writes, like LaTeX, rtf, rst, etc. So with the command</p> <pre><code>pandoc --toc happiness.txt -o happiness.html </code></pre> <p>this bit of markdown:</p> <pre><code>% True Happiness Introduction ------------ Many have posed the question of true happiness. In this blog post we propose to solve it. First Attempts -------------- The earliest attempts at attaining true happiness of course aimed at pleasure. Soon, though, the downside of pleasure was revealed. </code></pre> <p>will yield this as the body of the html:</p> <pre class="lang-html prettyprint-override"><code> &lt;h1 class="title"&gt; True Happiness &lt;/h1&gt; &lt;div id="TOC"&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="#introduction"&gt;Introduction&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#first-attempts"&gt;First Attempts&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="introduction"&gt; &lt;h2&gt; &lt;a href="#TOC"&gt;Introduction&lt;/a&gt; &lt;/h2&gt; &lt;p&gt; Many have posed the question of true happiness. In this blog post we propose to solve it. &lt;/p&gt; &lt;/div&gt; &lt;div id="first-attempts"&gt; &lt;h2&gt; &lt;a href="#TOC"&gt;First Attempts&lt;/a&gt; &lt;/h2&gt; &lt;p&gt; The earliest attempts at attaining true happiness of course aimed at pleasure. Soon, though, the downside of pleasure was revealed. &lt;/p&gt; &lt;/div&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload