Commit graph

407 commits

Author SHA1 Message Date
John MacFarlane
c45ae571cc Changed --toc-level to --toc-depth. 2013-01-05 12:03:05 -08:00
John MacFarlane
7c10e57997 Changed --epub-toc-level to --toc-level.
Also writerEpubTOCLevel -> writerTOCLevel.
So far this is only implemented in the EPUB writer.
2013-01-05 11:36:55 -08:00
John MacFarlane
30361308e7 Added --epub-chapter-level and --epub-toc-level options.
Also added writerEpubChapterLevel and writerEpubTOCLevel fields
to WriterOptions.
2013-01-04 22:29:41 -08:00
John MacFarlane
1d16349f38 Fixed duplicate link reference in README. 2013-01-04 21:56:26 -08:00
John MacFarlane
c435e9cda7 Implemented Ext_header_identifiers, Ext_implicit_header_references.
Now by default pandoc will act as if link references have been defined
for all headers.  So, you can do this:

    # My header

    Link to [My header].
    Another link to [it][My header].

Closes #691.
2013-01-03 20:35:01 -08:00
John MacFarlane
579d645f23 Documented .bibtex extension for BibTeX.
Closes #662.
2012-12-19 11:58:18 -08:00
John MacFarlane
5914be88a8 EPUB writer: Rationalized templates.
* Previously there were three different templates involved in
  epub production. There is now just one template, default.epub
  or default.epub3.
* It can now be overridden using `--template`, just like other
  templates.
2012-11-04 21:21:57 -08:00
John MacFarlane
83b326b005 EPUB: removed need for separate epub-titlepage template.
The titlepage stuff is now folded into the epub-page template.
A titlepage variable selects it.
2012-11-04 21:08:40 -08:00
John MacFarlane
a7b8351d43 EPUB writer: Removed need for separate epub-coverpage template.
The standard epub-page template is now used.
2012-11-04 20:53:41 -08:00
John MacFarlane
43448d7d53 Preliminary changes for epub3 format.
* EPUB writer now exports writeEPUB2 and writeEPUB3.
* 'epub' output format is epub v2, while 'epub3'
  is v3.
2012-11-02 17:46:22 -07:00
John MacFarlane
b1dafe8750 Fixed typo. 2012-10-04 09:24:28 -07:00
John MacFarlane
606b5e8ed4 Removed Ext_monospace_autolinks. 2012-09-27 15:01:00 -07:00
John MacFarlane
bae39e77a8 Added Ext_autolink_urls. 2012-09-27 13:43:48 -07:00
John MacFarlane
15a8192b84 Renamed Ext_autolink_code_spans to Ext_monospace_autolinks. 2012-09-27 13:33:14 -07:00
John MacFarlane
885ef2072f Make --id-prefix affect footnote IDs in markdown writer.
Closes #614.
2012-09-25 20:26:38 -07:00
John MacFarlane
1e7599cf6a README: Removed claim that 'enumerate' library is needed in LaTeX.
It isn't any longer.
2012-09-16 22:34:06 -07:00
John MacFarlane
62225599c9 Updated README to mention longtable package 2012-09-15 18:02:39 -04:00
John MacFarlane
0311ca8145 Updated README to include mediawiki reader 2012-09-15 18:02:08 -04:00
John MacFarlane
9bd371acd1 README: Properly escape $ characters.
Otherwise they mess up the LaTeX benchmark, which uses a version
of README converted to LaTeX.
2012-09-08 22:13:48 -07:00
John MacFarlane
c544f20d6f Made --id-prefix work in DocBook as well as HTML.
Closes #607.
2012-09-06 09:25:52 -07:00
John MacFarlane
b985d33406 Changed nomenclature, delimited -> fenced code blocks. 2012-08-21 19:21:51 -07:00
John MacFarlane
7b34dd8dd1 Added Ext_abbrevations for PHP markdown style abbreviation keys.
Note:  pandoc does not have an abbreviation element (yet) and
so currently when this extension is enabled, it just causes
pandoc to skip the abbrevation keys.
2012-08-19 11:15:32 -07:00
John MacFarlane
27304513f6 Added Ext_raw_html extension.
Closes #556 -- you can now specify markdown-raw_html as your
input format.  (Read: markdown minus raw_html.)
2012-08-12 22:04:23 -07:00
John MacFarlane
6f24fdb658 Added note to README on positioning of reference link defs. 2012-08-12 19:32:40 -07:00
John MacFarlane
e8e8468d69 Implemented Ext_mmd_title_block in markdown reader & writer. 2012-08-12 19:27:13 -07:00
John MacFarlane
c681ddcd7b Documented markdown_attribute extension in README. 2012-08-11 19:45:33 -07:00
John MacFarlane
872fd2fb9c Revert "Implemented Ext_markdown_attribute."
This reverts commit 78d3a0fb9d.
2012-08-11 16:36:54 -07:00
John MacFarlane
78d3a0fb9d Implemented Ext_markdown_attribute.
This adds markdown=1 to block tags.
2012-08-11 15:04:12 -07:00
John MacFarlane
eb4d522a56 Options and documentation for backslash tex math options.
Ext_tex_math_single_backslash and Ext_tex_math_double_backslash.
Still need to code in reader.
2012-08-10 21:57:54 -07:00
John MacFarlane
417cde38af Changed Ext_tex_math to Ext_tex_math_dollars. 2012-08-10 21:52:18 -07:00
John MacFarlane
be37ec510e Documented org-like pipe tables. 2012-08-10 13:37:59 -07:00
John MacFarlane
5a2e601c32 Documented new system for enabling/disabling extensions. 2012-08-10 11:29:44 -07:00
John MacFarlane
8d65651309 Changed strict to markdown_strict. 2012-08-09 22:32:22 -07:00
John MacFarlane
0cb7362f62 Removed --strict, added extensions to writer/reader names.
* The `--strict` option has been removed.
* Instead of using `--strict`, one can now use `strict` instead of
  `markdown` as an input or output format name.
* The `--enable` and `--disable` optinos have been removed.
* It is now possible to enable or disable specific extensions
  by appending them (with '+' or '-') to the writer or reader
  name.  For example `pandoc -f markdown-footnotes+hard_line_breaks`.
* The lhs extensions are now implemented this way, too; you can
  use either `+lhs` or `+literate_haskell`.
2012-08-09 20:24:05 -07:00
John MacFarlane
41e0075789 Removed --enable, --disable options. 2012-08-09 18:38:02 -07:00
John MacFarlane
1f940ee395 Changed heading in README so we don't have two "Citations" sections. 2012-08-08 15:36:33 -07:00
John MacFarlane
8a101cffe3 Support hard_line_breaks markdown extension.
* Added Ext_hard_line_breaks.
* Added section in README on non-pandoc extensions.
* Exported pandocExtensions and strictExtensions in Text.Pandoc.Options.

Closes #514.
2012-08-06 22:14:35 -07:00
John MacFarlane
81125e8f4e Documented styles used in reference docx 2012-08-05 09:18:56 -07:00
John MacFarlane
0380aa63d5 Updated extension labels in README. 2012-07-27 19:04:27 -07:00
John MacFarlane
ec7c1631a5 More documentation of extensions 2012-07-27 16:00:22 -07:00
John MacFarlane
6e548b8a8f Started documenting individual syntax extensions in README. 2012-07-27 15:45:30 -07:00
John MacFarlane
ed4039c3d7 Added README description of pipe tables. 2012-07-22 19:29:18 -07:00
Sergey Astanin
b39597a910 Added a new FictionBook2 (FB2) writer. 2012-07-22 11:13:14 -07:00
John MacFarlane
0e97e22672 Added note on --preserve-tabs in README. 2012-07-22 10:42:14 -07:00
John MacFarlane
70a2301876 Updated link to gladTeX. Closes #559. 2012-07-12 10:40:29 -07:00
John MacFarlane
81eb460dea Added note on MathJax. Closes #558. 2012-07-12 10:39:44 -07:00
Arlo O'Keeffe
3c75a4c930 Added information about including multiple CSS files. 2012-07-11 14:39:13 -06:00
John MacFarlane
064af070da Acknowledge Gavin Beatty in AUTHORS. 2012-06-27 14:47:33 -07:00
John MacFarlane
e085949ff6 README: Documented new variables in LaTeX template. 2012-06-08 10:56:24 -07:00
John MacFarlane
5fe9542ca8 Fixed documentation on mixed lists. Closes #533. 2012-06-08 10:06:07 -07:00
Jonas Smedegaard
61f8dd4da8 Add support for Slideous output. 2012-05-24 10:31:18 +02:00
John MacFarlane
b2340cd874 Added 'zenburn' highlight style from highlighting-kate.
Depend on h-k 0.5.0.6.
2012-05-17 18:54:41 -07:00
John MacFarlane
5f889b9396 Added writerTeXLigatures to WriterOptions, --no-tex-ligatures option.
This is useful for those who want to use advanced OpenType features
with xelatex/lualatex.
2012-05-11 23:00:46 -07:00
John MacFarlane
8d64109c80 Documented attributes for inline verbatim code. 2012-04-29 14:25:34 -07:00
John MacFarlane
5adda4762f Documented DocBook input format in README. 2012-04-20 10:40:59 -07:00
John MacFarlane
13eebc6cfb Added mathfont variable to latex template. 2012-03-15 14:39:03 -07:00
John MacFarlane
f29e67e161 LaTeX template tweaks:
- allow geometry variable to be repeated for multiple options
- use mainfont instead of romanfont
2012-03-15 10:49:36 -07:00
John MacFarlane
772c0757c1 Added geometry variable to default LaTeX template. 2012-03-14 14:17:22 -07:00
John MacFarlane
14050e77a3 README: Removed misleading note on reST math. 2012-03-12 12:47:25 -07:00
John MacFarlane
1202f016bb Added section on Internal links. 2012-03-12 10:19:41 -07:00
John MacFarlane
7253946318 Fixed typo in README 2012-03-10 07:47:59 -08:00
John MacFarlane
d4d9504950 Changed -V so that you can specify a key without a value.
Such keys get the value `true`.
2012-03-09 10:45:01 -08:00
John MacFarlane
9766b532f3 Added beamer+lhs as output format. 2012-03-09 10:32:32 -08:00
John MacFarlane
053ba29883 Better instructions for modifying templates for pdf, odt, epub output.
Thanks to rwst.  Closes #347.
2012-03-04 19:31:40 -08:00
John MacFarlane
c14efbb6df Fixed link example in README.
Thanks to Ryan Gray for pointing out the mistake.
2012-03-04 11:13:10 -08:00
John MacFarlane
0dfd427b6b README - fixed documentation on Smart Punctuation.
Closes #415.
2012-02-12 10:18:10 -08:00
John MacFarlane
5c498b36ef Doc fix: 'fontsize' is the template variable, not 'font-size'.
Closes pandoc-types#4.
2012-02-12 10:14:41 -08:00
John MacFarlane
c0ddee2b5b Merge pull request #411 from dfc/patch-1
"be is in" -> "be in"
2012-02-09 07:24:44 -08:00
John MacFarlane
04627b17ac Changed a README example.
The old one was bad, because the HTML comment is no longer
needed for that case in pandoc.
2012-02-09 07:20:03 -08:00
Douglas Calvert
0d1cf3c526 "be is in" -> "be in" 2012-02-08 22:50:18 -05:00
John MacFarlane
630c9f81ff Fixed lhs+markdown instructions.
Classes 'literate' and 'haskell' are needed for bird tracks.
Closes #395.
2012-02-06 12:38:45 -08:00
John MacFarlane
bec9485d93 Re-added the --ascii option.
Now it is implemented in pandoc.hs, not in the HTML writer.
2012-02-05 14:58:55 -08:00
John MacFarlane
e9a270d03b Don't include mathml javascript for html5 output.
mathml is supposed to be supported in HTML5.
2012-01-31 10:47:48 -08:00
John MacFarlane
3880828415 Support --mathml flag in docbook. 2012-01-31 10:32:40 -08:00
John MacFarlane
8f1bfec7b9 Added --epub-embed-font option.
* This can be repeated for multiple fonts.
* Added parameter for fonts to embed to writeEPUB.
* Added ttf, otf to Mime types in Text.Pandoc.MIME.
2012-01-30 13:09:52 -08:00
John MacFarlane
e7a94829b7 Updated README author list. 2012-01-29 19:33:34 -08:00
John MacFarlane
2a84abd210 Changed date in README. 2012-01-28 16:12:41 -08:00
John MacFarlane
d1ded4b026 Support github syntax for fenced code blocks.
You can now write

    ```ruby
    x = 2
    ```

instead of

    ~~~ {.ruby}
    x = 2
    ~~~~
2012-01-28 12:25:24 -08:00
John MacFarlane
8abe08d6d4 Made beamer an output format, removed pdf as output format.
Removed `--beamer` option; instead, use `beamer` as output format.
There is no longer a `pdf` output format; instead, pandoc tries
to produce a pdf if the output file has a `.pdf` extension.
(The output format can be latex -- the default for pdf output,
latex+lhs, or beamer.)

This seems more consistent with the way pandoc currently works
(e.g. we have an `html5` output format, not an `--html5` option).
2012-01-28 11:41:26 -08:00
John MacFarlane
259dda2c56 Fixed link in README. 2012-01-27 11:30:14 -08:00
John MacFarlane
5fc6669be6 Added --atx-headers option. 2012-01-26 23:55:37 -08:00
John MacFarlane
47bb165a65 Reorganized documentation of options, grouping into categories. 2012-01-25 22:34:16 -08:00
John MacFarlane
60bf741d68 Added --slide-level option to override default.
This allows users to select a slide level below the first
header level with content.

Note that content under sections above the slide level will not appear
in slides (either in beamer or in HTML slide shows).

This is primarily useful for creating documents that can be made
into both slides and handouts (which contain additional content
outside the slides).
2012-01-25 17:51:52 -08:00
John MacFarlane
2c4a55d160 FIxed typo in README. Closes #390. 2012-01-25 15:13:06 -08:00
John MacFarlane
b1a2f02082 Improved README on slides. 2012-01-25 11:51:36 -08:00
John MacFarlane
31629cb992 Updated README on --chapters with --beamer. 2012-01-25 10:48:25 -08:00
John MacFarlane
74100cf371 README: More on slide shows. 2012-01-24 20:52:09 -08:00
John MacFarlane
0f60e0cf76 README: New instructions for slide shows. 2012-01-24 20:48:45 -08:00
John MacFarlane
e57fb8d59d README: More information on what is needed to produce PDFs. 2012-01-21 14:59:25 -08:00
John MacFarlane
e721c7428e Removed beamer output format; added --beamer option. 2012-01-21 14:49:26 -08:00
John MacFarlane
2703162424 README tweak on equivalent to markdown2pdf. 2012-01-21 14:24:02 -08:00
John MacFarlane
1d615908c2 Removed markdown2pdf and documentation. 2012-01-20 21:22:51 -08:00
John MacFarlane
75a2b2fda1 Documented docx reader in README. 2012-01-19 23:26:45 -08:00
John MacFarlane
9001506f33 README: Added note on proper date format. 2012-01-01 14:54:41 -08:00
John MacFarlane
4e30f24974 EPUB writer: Allow lang variable to set language in metadata.
Defaults to locale language if `lang` is not set.
2012-01-01 14:32:27 -08:00
John MacFarlane
da8425598a New treatment of dashes in --smart mode.
* `---` is always em-dash, `--` is always en-dash.
* pandoc no longer tries to guess when `-` should be en-dash.
* A new option, `--old-dashes`, is provided for legacy documents.

Rationale: The rules for en-dash are too complex and
language-dependent for a guesser to work reliably.  This
change gives users greater control.  The alternative of
using unicode isn't very good, since unicode em- and en-
dashes are barely distinguishable in a monospace font.
2012-01-01 13:48:28 -08:00
John MacFarlane
a561135386 README: header identifiers now work in LaTeX, ConTeXt as well as HTML.
Patch from B. Scott Michel.
2011-12-30 14:34:54 -08:00
B. Scott Michel
a5ee02c659 ConTeXt writer: Add section labels and internal links as in HTML.
Add the ability to refer to internal links to the ConTeXt writer, just
like the HTML writer can. The 'hierarchicalize' function generates
unique names for sections, which can be used for references in ConTeXt,
just as they can be in HTML.

The ConTeXt writer adds these unique identifiers to each \section and
does special processing of the Link target to see if it starts with a
'#' (hash symbol), which is the tip-off that the link is an internal
link.
2011-12-30 13:10:15 -08:00
John MacFarlane
c5c7aa653a README: Added link for HTML 5. 2011-12-30 11:27:28 -08:00
John MacFarlane
cdb01e6d54 Made html5 and html5+lhs output formats.
Deprecated the `--html5`/`-5` flag. Use the output format
instead.
2011-12-29 13:39:03 -08:00