aboutsummaryrefslogtreecommitdiff
path: root/src/Text
AgeCommit message (Collapse)AuthorFilesLines
2013-10-06Removed code that forces MathJax to typeset.John MacFarlane1-2/+1
Closes #1012. Reopens #966. A better solution for #966 will just affect slideous, not the other slide writers.
2013-09-28LaTeX reader: Parse {groups} as Span.John MacFarlane1-1/+10
This is needed for accurate conversion of bibtex titles, since we need to know what was protected from titlecase conversions.
2013-09-24OpenDocument writer: don't use font-face-decls variable.John MacFarlane1-7/+0
2013-09-25src/Text/Pandoc/Writers/OpenDocument.hs: Fix formatting of strikeout code.Václav Zeman1-4/+15
2013-09-19Markdown reader: small code improvement.John MacFarlane1-5/+5
2013-09-19LaTeX writer: Don't print biblio if --natbib or --biblatex option used.John MacFarlane1-10/+17
2013-09-19DOCX writer: Add missing settings.xml to the zip container.John MacFarlane1-1/+3
Closes #990.
2013-09-18Fixed reference slides.John MacFarlane1-1/+6
The Div container around references messed up the procedure for carving a document into slides. So we now remove the surrounding Div in prepSlides.
2013-09-14Markdown reader: unresolved citations fall back to original text.John MacFarlane1-11/+14
Not ???. Reason: Less surprising, especially for people using @ as in twitter.
2013-09-12Markdown writer: Print references if output is 'plain'.John MacFarlane1-1/+2
2013-09-12HTML writer: Ensure proper escaping in header metadata.John MacFarlane1-4/+5
2013-09-11Mediawiki: Parse an image + caption in a para by itself as a figure.John MacFarlane1-2/+2
2013-09-09Markdown: don't parse citation right after alphanumeric.John MacFarlane1-0/+5
An `@` after an alphanumeric is probably an email address.
2013-09-08Made . . . for pause work in all slide show formats except slideous.John MacFarlane1-7/+15
2013-09-08Templates: more consistent behavior of `$for$`.John MacFarlane1-1/+1
When `foo` is not a list, `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$. So if `foo` resolves to "", no output should be produced. See pandoc-templates#39.
2013-09-08markdown+list_without_preceding_blankline:+Interpret text before list as ↵John MacFarlane1-3/+5
paragraph.
2013-09-08Markdown: Allow backtick code blocks not to be preceded by blank line.John MacFarlane1-0/+3
Closes #975.
2013-09-07MedaWiki reader: Implement some mathjax extensions.John MacFarlane1-4/+15
* `:<math>` for display math * `\(..\)` for inline math * `\[..\]` for display math We omit the `$` forms as the heuristics are harder.
2013-09-07Added `lists_without_preceding_blankline` extension.John MacFarlane2-0/+3
* Added `Ext_lists_without_preceding_blankline` to `Extension` in `Options`. Added this option to `githubMarkdownExtensions`. * Made markdown reader sensitive to this. * Closes #972.
2013-09-06Markdown writer: Fixed bugs in YAML header output.John MacFarlane1-3/+3
2013-09-06MediaWiki reader: Allow Image: for images.John MacFarlane1-1/+1
Closes #971.
2013-09-01Markdown reader: Don't autolink a bare URI that is followed by `</a>`.John MacFarlane1-0/+1
Closes #937.
2013-09-01Mathjax in HTML slide shows: include explicit "Typeset" instruction.John MacFarlane1-1/+2
This seems to be needed for some formats (e.g. slideous) and won't hurt in others. Closes #966.
2013-09-01Use registerHeader in Textile reader.John MacFarlane1-1/+3
This produces automatic header identifiers, unless `auto_identifiers` extension is disabled. Closes #967.
2013-09-01Use registerHeader in RST and LaTeX readers.John MacFarlane2-5/+7
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
2013-09-01Factored out registerHeader from markdown reader, added to Parsing.John MacFarlane2-28/+34
Text.Pandoc.Parsing now exports registerHeader, which can be used in other readers.
2013-08-28LaTeX reader: allow spaces in alignment spec in tables.John MacFarlane1-2/+3
E.g. `{ l r c }`.
2013-08-28Generalized type of stringify.John MacFarlane1-3/+4
2013-08-27LaTeX reader: Allow accents with combining characters.John MacFarlane1-185/+185
accent now returns [Char], not Char.
2013-08-27Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane6-322/+14
2013-08-25Merge pull request #961 from nougad/add_latex_listings_labelJohn MacFarlane2-3/+8
Write id for code block to label attr in latex when listing is used
2013-08-24Removed dependency on citeproc-hs.John MacFarlane5-237/+4
Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
2013-08-24Moved most of Text.Pandoc.Readers.TeXMath to texmath 0.6.4.John MacFarlane1-82/+2
2013-08-22Write id for code block to label attr in latex when listing is usedFlorian Eitel2-3/+8
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-21LaTeX reader: Added o-cedilla.John MacFarlane1-0/+2
2013-08-21Merge pull request #960 from semorrison/masterJohn MacFarlane1-0/+6
Processing some additional cedilla accents while reading LaTeX
2013-08-21cedilla-o breaks the compile, removing againScott Morrison1-2/+0
2013-08-21adding some cedilla characters to the LaTeX readerScott Morrison1-0/+8
2013-08-20Merge branch 'altcite'John MacFarlane3-24/+37
2013-08-20Create Cite element even if no matching reference in the biblio.John MacFarlane3-24/+37
* Add ??? as fallback text for non-resolved citations. * Biblio: Put references (including a header at the end of the document, if one exists) inside a Div with class "references". This gives some control over styling of references, and allows scripts to manipulate them. * Markdown writer: Print markdown citation codes, and disable printing of references, if `citations` extension is enabled. NOTE: It would be good to improve what citeproc-hs does for a nonexistent key.
2013-08-19Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane1-1/+5
2013-08-18Allow multiple YAML metadata blocks in document.John MacFarlane1-51/+56
2013-08-18Parsing: Added stateMeta' to ParserState.John MacFarlane1-0/+2
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane7-14/+58
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-08-17Markdown reader: Parse span, div tags as Span, Div elements.John MacFarlane1-0/+22
Assuming markdown_in_html extension is set.
2013-08-17Markdown reader: Don't generate blank title, author, date elements.John MacFarlane1-3/+3
2013-08-16Shared: Changed stringify so it ignores notes.John MacFarlane1-1/+5
Also documented this in README.
2013-08-16Revert "Shared: stringify now skips over footnotes."John MacFarlane1-1/+0
This reverts commit 19591df739a6c50a3d0a9af55ba90b883264b21d. This change didn't work; query has already written the contents of the note by the time it gets to Note.
2013-08-16Shared: stringify now skips over footnotes.John MacFarlane1-0/+1
That is usually the right thing to do for section labels, etc.
2013-08-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-6/+7
Closes #940. Added test case.