pandoc/tests/Tests/Writers
Florian Eitel 5f09cf7ff0 Write id for code block to label attr in latex when listing is used
The code:

    ~~~{#test}
    asdf
    ~~~

gets compiled to html:

    <pre id="test">
    asdf
    </pre>

So it is possible to link to the identifier `test`

But this doesn't happen on latex

When using the listings package (`--listings`) it is possible to set the
identifier using the `label=test` property:

    \begin{lstlisting}[label=id]
    hi
    \end{lstlisting}

And this is exactly what this patch is doing.

Modified LaTeX Reader/Writer and added tests for this.
2013-08-22 20:15:36 +02:00
..
ConTeXt.hs Eliminated use of TH in test suite. 2013-01-23 19:26:39 -08:00
HTML.hs Updated a test whose output changed due to last commit. 2013-07-13 13:47:09 -07:00
LaTeX.hs Write id for code block to label attr in latex when listing is used 2013-08-22 20:15:36 +02:00
Markdown.hs Eliminated use of TH in test suite. 2013-01-23 19:26:39 -08:00
Native.hs Use new flexible metadata type. 2013-06-24 20:29:41 -07:00