pandoc/src/Text/Pandoc/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
..
AsciiDoc.hs Adjustments for new Format newtype. 2013-08-10 17:24:54 -07:00
ConTeXt.hs Use query instead of queryWith. 2013-08-10 18:13:38 -07:00
Custom.hs Adjustments for new Format newtype. 2013-08-10 17:24:54 -07:00
Docbook.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00
Docx.hs Options: Changed writerSourceDir to writerSourceURL (now a Maybe). 2013-08-11 15:58:09 -07:00
EPUB.hs Options: Changed writerSourceDir to writerSourceURL (now a Maybe). 2013-08-11 15:58:09 -07:00
FB2.hs Use walk, walkM in place of bottomUp, bottomUpM when possible. 2013-08-10 18:45:00 -07:00
HTML.hs Adjustments for new Format newtype. 2013-08-10 17:24:54 -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
Man.hs Adjustments for new Format newtype. 2013-08-10 17:24:54 -07:00
Markdown.hs Create Cite element even if no matching reference in the biblio. 2013-08-20 20:47:06 -07:00
MediaWiki.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00
Native.hs Some test suite fixes for new metadata. 2013-06-25 22:32:50 -07:00
ODT.hs ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance. 2013-08-11 17:13:46 -07:00
OpenDocument.hs ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance. 2013-08-11 17:13:46 -07:00
OPML.hs Created Text.Pandoc.Writers.Shared, improved metaToJSON. 2013-07-01 20:47:26 -07:00
Org.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00
RST.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00
RTF.hs Use walk, walkM in place of bottomUp, bottomUpM when possible. 2013-08-10 18:45:00 -07:00
Shared.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00
Texinfo.hs Adjustments for new Format newtype. 2013-08-10 17:24:54 -07:00
Textile.hs Adjusted writers and tests for change in parsing of div/span. 2013-08-18 14:36:40 -07:00