<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hakyll/web/css, branch master</title>
<subtitle>Haskell library for generating static sites</subtitle>
<id>https://git.pashev.ru/hakyll/atom?h=master</id>
<link rel='self' href='https://git.pashev.ru/hakyll/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/'/>
<updated>2019-05-31T07:50:01Z</updated>
<entry>
<title>Bump syntax.css</title>
<updated>2019-05-31T07:50:01Z</updated>
<author>
<name>Jasper Van der Jeugt</name>
<email>m@jaspervdj.be</email>
</author>
<published>2019-05-31T07:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=680bd76de4945c79b950d22f8baf9a1e78454661'/>
<id>urn:sha1:680bd76de4945c79b950d22f8baf9a1e78454661</id>
<content type='text'>
See #675
</content>
</entry>
<entry>
<title>Fix issue with syntax highlighting + line nums.</title>
<updated>2014-01-02T01:22:57Z</updated>
<author>
<name>Adelbert Chang</name>
<email>adelbertc@gmail.com</email>
</author>
<published>2014-01-02T01:22:57Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=22434b5a69b561364e7060e1d651be6e2040fd98'/>
<id>urn:sha1:22434b5a69b561364e7060e1d651be6e2040fd98</id>
<content type='text'>
Below is the generated HTML for with line numbers and without line numbers, respectively.

```html
&lt;!-- Without line numbers --&gt;
&lt;pre class="sourceCode scala"&gt;
    &lt;code class="sourceCode scala"&gt;
        &lt;span class="kw"&gt;trait&lt;/span&gt;
        Monad[M[_]]
    &lt;/code&gt;
&lt;/pre&gt;

&lt;!-- With line numbers --&gt;
&lt;table class="sourceCode scala numberLines"&gt;
    &lt;tr class="sourceCode"&gt;
        &lt;td class="lineNumbers"&gt;
            &lt;pre&gt;1&lt;/pre&gt;
        &lt;/td&gt;
        &lt;td class="sourceCode"&gt;
            &lt;pre&gt;
                &lt;code class="sourceCode scala"&gt;
                    &lt;span class="kw"&gt;trait&lt;/span&gt;
                    Monad[M[_]]
                &lt;/code&gt;
            &lt;/pre&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;

```

The markdown used is:

```

~~~~ { .scala }
trait Monad[M[_]]
~~~~

~~~~ { .scala .numberLines}
trait Monad[M[_]]
~~~~

```

Notice that without line numbers the outer `pre` has a `sourceCode` class whereas with line numbers the `sourceCode` class is only put in `code` and table-related tags.

In the original `syntax.css` file synax highlighting was only triggered if the `kw` and friends tags were within a `pre.sourceCode` - that means it did not trigger with line numbers. This change removes the requirement for the `pre` prefix so that highlighting is triggered with or without line numbers, so long as the code is within *some* `.sourceCode` tag.
</content>
</entry>
<entry>
<title>Site updates</title>
<updated>2013-01-13T20:46:25Z</updated>
<author>
<name>Jasper Van der Jeugt</name>
<email>m@jaspervdj.be</email>
</author>
<published>2013-01-13T20:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=82a725bd8f59453cacf3ff5e45b3a7d2903dbb2f'/>
<id>urn:sha1:82a725bd8f59453cacf3ff5e45b3a7d2903dbb2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add flattr button, update css a bit</title>
<updated>2012-02-22T13:12:51Z</updated>
<author>
<name>Jasper Van der Jeugt</name>
<email>jaspervdj@gmail.com</email>
</author>
<published>2012-02-22T13:12:51Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=1539e8fc7193e3fc8c753cad880f481edb3fafd5'/>
<id>urn:sha1:1539e8fc7193e3fc8c753cad880f481edb3fafd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove whitespace [Gun.io WhitespaceBot]</title>
<updated>2011-12-16T03:35:46Z</updated>
<author>
<name>Gun.io Whitespace Robot</name>
<email>contact@gun.io</email>
</author>
<published>2011-12-16T03:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=c842ec66d79dc2515e610cad1a2bf62739dca837'/>
<id>urn:sha1:c842ec66d79dc2515e610cad1a2bf62739dca837</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update website a bit</title>
<updated>2011-06-13T16:26:04Z</updated>
<author>
<name>Jasper Van der Jeugt</name>
<email>jaspervdj@gmail.com</email>
</author>
<published>2011-06-13T16:26:04Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=efab53729d95cc69a8205bb691db9c12e9e06096'/>
<id>urn:sha1:efab53729d95cc69a8205bb691db9c12e9e06096</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove examples from this repo</title>
<updated>2011-06-13T06:43:28Z</updated>
<author>
<name>Jasper Van der Jeugt</name>
<email>jaspervdj@gmail.com</email>
</author>
<published>2011-06-13T06:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.pashev.ru/hakyll/commit/?id=edeef66180f24e4254b512041bee617368fa1eba'/>
<id>urn:sha1:edeef66180f24e4254b512041bee617368fa1eba</id>
<content type='text'>
</content>
</entry>
</feed>
