Age | Commit message (Collapse) | Author | Files | Lines |
|
Print warning if file doesn't exist.
|
|
* New module `Text.Pandoc.Docx`.
* New output format `docx`.
* Added reference.docx.
* New option `--reference-docx`.
The writer includes support for highlighted code blocks
and math (which is converted from TeX to OMML using
texmath's new OMML module).
|
|
|
|
|
|
* ImageSize record now includes dpiX, dpiY, pxX, pxY.
* New functions sizeInPixels and sizeInPoints.
|
|
OpenDocument writer: a title like "123x467" is interpreted
as size in *points*.
ODT writer: while adding images to the archive, computes their
sizes and inserts a title attribute with the size before
calling opendocument writer.
Size is computed as follows:
size in points = size in pixels * 96 / 72
|
|
|
|
This is intened for use in docx and odt writers, so the size
of image boxes can be calculated.
|
|
Later we'll modify the ODT writer to insert such titles, so image
sizes will be correct in the ODT.
|
|
|
|
This ensures that the META-INF/manifest.xml for ODT files will
have everything it needs. Fixes a bug using modified ODT
files as `--reference-odt`.
|
|
|
|
|
|
|
|
|
|
Top line of table must not be followed by a blank line.
This bug caused slowdown on some files with hrules and tables,
and pandoc tried to interpret the hrules as the tops of
multiline tables.
|
|
This change also means that
[link with [link](/url)](/url)
will turn into
<p><a href="/url">link with link</a></p>
instead of
<p><a href="/url">link with [link](/url)</a></p>
|
|
|
|
Pandoc previously behaved like Markdown.pl for consecutive
lists of different styles. Thus, the following would be parsed
as a single ordered list, rather than an ordered list followed
by an unordered list:
1. one
2. two
- one
- two
This patch makes pandoc behave more sensibly, parsing this as
two lists. Any change in list type (ordered/unordered) or in
list number style will trigger a new list. Thus, the following
will also be parsed as two lists:
1. one
2. two
a. one
b. two
Since we regard this as a bug in Markdown.pl, and not something
anyone would ever rely on, we do not preserve the old behavior
even when `--strict` is selected.
|
|
Defaults to locale language if `lang` is not set.
|
|
* `---` 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.
|
|
Inline math uses the :math:`...` construct.
Display math uses
.. math:: ...
or if multilin
.. math::
...
These seem to be supported now by rst2latex.py.
|
|
This allows you to include something conditionally on it being
before a nonblank. Used for RST inline math.
|
|
http://sphinx.pocoo.org/latest/ext/math.html
|
|
Inline: :math:`E=mc^2`
Block:
.. math: E = mc^2
.. math::
E = mc^2
a = b^2
(This latter will turn into a paragraph with two
display math elements.)
Closes #117.
|
|
This was a regression introduced by the recent internal
links changes.
|
|
|
|
Based on a patch by B. Scott Michel.
Also simplified use of \hyphenateurl. We no longer try to go within
an Inline list to find URLs. This is resource-heavy, and the main
use case is autolinks, which can be readily recognized.
|
|
Based on a patch by B. Scott Michel.
|
|
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.
|
|
Footnotes and email addresses now come out in a more pleasing
way.
Modified from a patch by B. Scott Michel.
|
|
|
|
Use isURI instead of isAbsoluteURI, as it also matches
absolute URIs with '#...' at the end.
|
|
Deeply scan through the [Inline] associated with a Link and ensure that
all URLs are hyphenated using SYB primitives.
|
|
We now check the `documentclass` variable, and if that is
not set, we look through the template itself. Also, we
have added the KOMA classes scrreprt and scrbook.
You can now make a book using
markdown2pdf -V documentclass:book
|
|
This should fix `<dc:language>` problems.
|
|
* Added stateLastStrPos to ParserState. This lets us keep track
of whether we're parsing the position immediately after a 'str'.
If we encounter a ' in such a location, it must be an apostrophe,
and can't be a single quote start.
* Set this in the markdown, textile, html, and rst str parsers.
* Closes #360.
|
|
Use Link instead of RawInline for reference backlinks
|
|
Deprecated the `--html5`/`-5` flag. Use the output format
instead.
|
|
Beamer output uses the default LaTeX template, with some
customizations via variables.
Added `writerBeamer` to `WriterOptions`.
Added `--beamer` option to `markdown2pdf`.
|
|
The container element will have the classes, id, and
key-value attributes you specified in the delimited code
block.
Previously these were stripped off.
|
|
Previously they were ignored. Now all links are preserved,
but purely internal links are modified so that they point
to the proper place in the EPUB.
This is nontrivial, since the heading you refer to in your
markdown source with 'my-section-1' might end up as
'ch16.xhtml#my-section' in the EPUB.
Closes #76.
|
|
|
|
This restores behavior of 1.8.2.1. Adjusted tests.
|
|
|
|
|
|
|
|
|
|
|
|
This solves a problem stemming from the fact that a parser
doesn't know what came *before* in the input stream.
Previously pandoc would parse
D'oh l'*aide*
as containing a single quoted "oh l", when both `'`s should
be apostrophes. (Issue #360.) There are two issues here.
(a) It is obvious that the first `'` is not an open quote,
becaues of the preceding `D`. This patch solves the problem.
(b) It is obvious to us that the second `'` is not an
open quote, because we see that *aide* is some text.
But getting a good algorithm that has good performance is
a bit tricky. You can't assume that `'` followed by `*`
is always an apostrophe:
*'this is quoted'*
This patch does not fix (b).
|