aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-11-06Removed CITEPROC CPP conditionals from library code.John MacFarlane2-8/+0
By Cabal policy, the API should not change depending on flags.
2010-11-06Changes to use citeproc-hs 0.3.John MacFarlane2-93/+26
2010-11-05Removed Text.Pandoc.Definition, bump version to 1.7.John MacFarlane1-165/+0
We now get Text.Pandoc.Definition from the new pandoc-types package. This will make it possible for other programs to supply output in Pandoc format, without depending on the whole pandoc package.
2010-11-04Biblio: small fix to detection of punctuation (A. Rossato).John MacFarlane1-4/+4
2010-11-03Biblio: Improve footnote generation.John MacFarlane1-10/+24
Patch from Andrea Rossato.
2010-11-02Improve footnote generation of in-text citations w/ note styles.John MacFarlane1-24/+118
Patch from Andrea Rossato.
2010-10-31--mathjax: Use mathjax with raw latex rather than mathml.John MacFarlane1-12/+4
It seems to work better, and the default config can be used.
2010-10-27Changes to use citeproc 0.3.John MacFarlane4-24/+101
Patch from Andrea Rossato. Note: the markdown syntax is preliminary and will probably change.
2010-10-26Added support for MathJax for displaying math in HTML.John MacFarlane3-2/+22
Added --mathjax option. Added MathJax to HTMLMathMethod. Supported MathJax in HTML writer. Resolves Issue #259.
2010-10-26Parse blanklines after macro definitions.John MacFarlane1-1/+1
2010-10-26Process LaTeX macros in markdown, and apply to TeX math.John MacFarlane3-7/+38
Example: \newcommand{\plus}[2]{#1 + #2} $\plus{3}{4}$ yields: 3+4
2010-10-24LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.John MacFarlane2-0/+4
This avoids unwanted interpretation as optional arguments in some contexts, which caused the brackets to silently disappear!
2010-10-24Changed --help message for --variable to KEY:VALUE.John MacFarlane1-1/+1
Was previously FILENAME.
2010-10-19TeXMath: handle variables modified with \acute, \bar, etc.John MacFarlane1-0/+15
Complete list: \acute, \grave, \breve, \check, \dot, \mathring, \vec, \overrightarrow, \overleftarrow, \hat, \tilde, \bar.
2010-10-19TeXMath reader: handle \textit, \textbf, etc.John MacFarlane1-1/+5
2010-09-10Encode filenames as UTF8.John MacFarlane2-4/+5
Resolves Issue #252 (pandoc doesn't properly handle unicode filenames).
2010-08-01gladTeX HTML - specify ENV for display or inline.John MacFarlane1-1/+3
Thanks to Jonathan Daugherty for the patch. The gladTeX program gives finer control over the LaTeX environment used to render its input. The latest version (1.1) uses the "displaymath" environment by default, which is nice for large, block-level equations, but it isn't so nice for inline math (where "math" is more appropriate). This patch causes the HTML writer to differentiate between the two by explicitly setting the LaTeX environment on the generated EQ tag.
2010-07-24--offline implies --standalone.John MacFarlane1-1/+2
2010-07-22Moved Text.Pandoc.Writers.S5 -> Text.Pandoc.S5.John MacFarlane3-15/+5
Now it doesn't export a writer, just some CSS and JS.
2010-07-22Improved cutUp function, removed extra </div>John MacFarlane1-10/+12
2010-07-22Moved s5 writing from S5 module to HTML.John MacFarlane5-79/+8
Now s5 is handled in more or less the same way as slidy, as a variant of HTML.
2010-07-22Extended --offline to s5.John MacFarlane2-1/+5
S5 default is now to include links, rather than a full copy of scripts and stylesheets.
2010-07-22Added new --offline option for slidy.John MacFarlane1-5/+20
Added slidy/slidy.min.{css,js}.
2010-07-22Slidy writer: Avoid spurious blank page.John MacFarlane1-1/+5
2010-07-22Export HTMLSlideVariant in Text.Pandoc.John MacFarlane2-1/+2
2010-07-22Require texmath >= 0.3, adjusted for new elements.John MacFarlane1-0/+3
2010-07-21Changed to using strict bytestrings in UTF8 module.John MacFarlane1-2/+2
This avoids a problem on Windows reading from stdin. Previously we'd get an error from hGetBufNonBlocking.
2010-07-21Avoid shadowing when compiling with citeproc.John MacFarlane1-4/+4
2010-07-20Made spacing at end of output more consistent.John MacFarlane5-5/+5
Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
2010-07-18Slidy writer: create new slide at every level 1 header.John MacFarlane1-1/+4
2010-07-16Use default highlighting CSS rather than embedding CSS in templates.John MacFarlane1-2/+3
2010-07-15Added --section-divs option.John MacFarlane3-9/+21
+ Header identifiers now get attached to the headers, unless --section-divs is specified, in which case they are added to enclosing divs. By default, the divs are not added. + Resolves Issue #230, #239.
2010-07-15Added --webtex option for HTML math.John MacFarlane3-20/+39
+ Added --webtex command-line option, with optional parameter. (Defaults to using google charts API.) + Added WebTeX HTMLMathMethod. + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.) + Modified --mimetex option to use WebTeX. + Thanks to lpeterse for the idea and some of the code.
2010-07-14Improved handling of code in man writer.John MacFarlane1-3/+7
+ Inline code is now in monoscpace, not bold. + Code blocks now use .nf (no fill) and .IP (indented paragraph). + Resolves Issue #247.
2010-07-14HTML reader: code cleanup + parse <tt> as Code.John MacFarlane1-34/+47
Partially resolves Issue #247.
2010-07-14Code cleanup, S5 writer.John MacFarlane1-13/+5
2010-07-13Improved Slidy writer.John MacFarlane1-3/+12
We now carve up slides at HorizontalRules, rather than by level-1 headers. This gives the user lots of flexibility.
2010-07-13Added a slidy writer.John MacFarlane3-14/+33
Resolves Issue #122.
2010-07-13Made latex \section, \chapter parsers more forgiving of whitespace.John MacFarlane1-0/+3
2010-07-13Parse \chapter{} in latex.John MacFarlane2-4/+24
+ Added stateHasChapters to ParserState. + If a \chapter command is encountered, this is set to True and subsequent \section commands (etc.) will be bumped up one level.
2010-07-12Modified example refs so they can occur before or after target.John MacFarlane1-5/+15
The refs are now replaced by numbers at the final stage, using processWith.
2010-07-11Merge branch 'atlists'. Added auto-numbered example lists.John MacFarlane9-10/+47
2010-07-11Moved headerShift from pandoc.hs to Shared.John MacFarlane2-7/+10
2010-07-11Slight code cleanup on substitute function.John MacFarlane1-4/+4
2010-07-09Cleaned up EPUB writer.John MacFarlane1-33/+43
2010-07-08EPUB writer: don't put multiple copies of same image in epub.John MacFarlane1-10/+17
2010-07-08Get default stylesheet in EPUB writer, rather than pandoc.hs.John MacFarlane2-12/+12
2010-07-08Added writerUserDataDir to WriterOptions.John MacFarlane3-6/+8
2010-07-08Added writerSourceDirectory to WriterOptions.John MacFarlane4-16/+20
This allows us to remove an argument from the ODT and EPUB writers.
2010-07-07Addendum to the fix to issue #242.John MacFarlane1-1/+1
The previous fix resulted in bird tracks being included in both html and html+lhs renderings of literate haskell sections when pandoc was compiled without highlighting support. This change make pandoc without highlighting behave like pandoc with highlighting: the bird tracks are used only if html+lhs output is specified.