pandoc/src/Text/Pandoc
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
..
Compat Text.Pandoc.Compat.Monoid: Small improvements to the (<>) definition. 2013-08-12 16:21:24 -07:00
Readers Write id for code block to label attr in latex when listing is used 2013-08-22 20:15:36 +02:00
Writers Write id for code block to label attr in latex when listing is used 2013-08-22 20:15:36 +02:00
Asciify.hs Added Text.Pandoc.Asciify utility module. 2013-04-23 20:10:24 -07:00
Biblio.hs Create Cite element even if no matching reference in the biblio. 2013-08-20 20:47:06 -07:00
Data.hsb Use hsb2hs preprocessor instead of TH for embed_data_files. 2013-01-23 19:26:39 -08:00
Highlighting.hs LaTeX reader: Handle language attribute for lstlistings. 2013-03-05 22:43:27 -08:00
ImageSize.hs Text.Pandoc.ImageSize: Handle EPS. 2013-07-16 22:04:59 -07:00
MIME.hs PDF generation improvements. 2013-07-20 12:14:43 -07:00
Options.hs Options: Changed writerSourceDir to writerSourceURL (now a Maybe). 2013-08-11 15:58:09 -07:00
Parsing.hs Parsing: Added stateMeta' to ParserState. 2013-08-18 16:22:56 -07:00
PDF.hs PDF: Add suggestion to use --latex-engine=xelatex on encoding error. 2013-08-11 16:16:24 -07:00
Pretty.hs Remove CPP from default-extensions; add pragmas to modules as needed. 2013-08-04 14:12:13 -07:00
Process.hs Added Text.Pandoc.Process (pipeProcess). 2013-08-08 15:15:12 -07:00
SelfContained.hs Improved fetching of external resources. 2013-07-18 20:58:14 -07:00
Shared.hs Shared: Changed stringify so it ignores notes. 2013-08-16 13:22:27 -07:00
Slides.hs Reveal.js improvements. 2013-03-23 21:48:34 -04:00
Templates.hs Added Text.Pandoc.Compat.Monoid. 2013-08-08 10:41:39 -07:00
UTF8.hs Remove CPP from default-extensions; add pragmas to modules as needed. 2013-08-04 14:12:13 -07:00
UUID.hs Added an EPUB writer. 2010-07-05 00:06:27 -07:00
XML.hs Added Text.Pandoc.Compat.TagSoupEntity. 2013-08-08 10:42:52 -07:00