Age | Commit message (Collapse) | Author | Files | Lines |
|
This was due to a change in the Show instance for
Text.Pandoc.Pretty.Doc, which led 1.11 to produce corrupt ODTs.
Closes #780.
|
|
Added tests. This fixes a regression from 1.10.x. Closes #786.
|
|
They do not generate a Quoted element; instead, the double quote
is just turned into a Str with a curly left quote.
This should satisfy the fiction writers. Closes #99 (again).
|
|
Closes #763.
|
|
Previously, a LaTeX citation would always be parsed as a Citation
element, with the raw LaTeX in the [Inline] part.
Now, the LaTeX citation is parsed as a Citation element only if
`--biblio` was specified (i.e. only if there is a nonempty set
of references in readerReferences). Otherwise it is parsed as
raw LaTeX.
This will make it possible to simplify some things in the markdown
writer. It also makes the LaTeX reader behave more like the Markdown
reader.
|
|
Previously citations were rendered as citeproc-formatted citations
by default. Now we render them as pandoc citations, e.g. `[@item1]`,
unless the `citations` extension is disabled.
If you still want formatted citations in your markdown output,
use `pandoc -t markdown-citations`.
|
|
|
|
Closes #763.
|
|
Convert it to a highlighting-kate language name.
|
|
* Moved code for translating listings language names to
highlighting-kate names and back from LaTeX reader to Highlighting.
* Text.Pandoc.Highlighting no longer exposed (API change)
* Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
|
|
We convert these to pandoc standard names, e.g. "numberLines"
for "numbers=left", "startFrom=100" from "firstnumber=100".
Still need to add code to convert the language names.
|
|
If "numberLines" class is present, we add "numbers=left";
if "startFrom" is present, we add "firstnumber=".
Partially addresses #763.
|
|
* The TOC is included in `<spine>`, but `linear` is set
to `no` unless the `--toc` option is specified.
* Include `<guide>` element in OPF.
* This should allow the TOC to be useable in Kindles when
converted with kindlegen.
* Results validate with epubcheck 3.0 for both epub and epub3
output.
* Closes #773.
|
|
* Cleaned up parsing code.
* '-' in an attribute context = '.unnumbered'. The point of this
is to provide a way to specify unnumbered headers in non-English
documents.
|
|
Otherwise some pipe tables get treated as line blocks.
|
|
Closes #772.
|
|
This is needed for them to be rendered as figures.
Closes #766.
|
|
|
|
The uri parser is designed for bare URIs. In angle-bracket contexts,
we can be sure that we don't have trailing punctuation. So
`<http://openclipart.org/detail/22566/lego-smiley----happy-by-pitr>`
should work now.
Closes #768.
|
|
Closes #740.
|
|
|
|
|
|
|
|
Display math inside a paragraph is now put in a separate
paragraph, so it will render properly (centered and without
extra blank lines around it).
Partially addresses #742.
|
|
Closes #766.
|
|
FootnoteReference -> FootnoteRef.
Hyperlink -> Link.
Why? Because the old names got changed by Word when the
reference.docx was edited. I don't understand why, but this
fixes things.
Closes #414.
|
|
This fixes problems that arise when you edit the reference.docx
with Word. Word tends to remove things from the `[Content_Types].xml`
and `word/_rels/document.xml.rels` files that are needed (e.g.
references to the `footnotes.xml` file and image default mime types).
So we regenerate these completely rather than taking them from
the `reference.docx`.
We also now encode mime types for each individual image rather
than using defaults. This should allow us to handle a wider
range of image types.
This mostly addresses #414. The only remaining issue I can see
is the issue of style IDs, which Word inexplicably changes in
some cases when the reference.docx is saved. E.g.
`FootnoteReference` becomes `FootnoteReference1`.
|
|
|
|
|
|
So far we have no function to determine PDF's size.
|
|
* Headers with "unnumbered" attribute are not numbered.
(Nor do they cause an increment in running numbering.)
* Section numbers now work properly, even when there is
material before the first numbered section.
|
|
Changed toChunks to toChapters.
|
|
With this change, `--number-sections` won't work. This will
be fixed later.
|
|
We add 0s to the end of the list if it's shorter than needed.
|
|
Also `writerNumberFrom` -> `writeNumberOffset`.
The offset is a list of numbers (0 by default).
These are added to the section, subsection, etc.
numbers that would have been generated automatically.
|
|
* If we need to add an initial section, make it unnumbered.
* Don't add extra space before unnumbered section titles in TOC.
|
|
|
|
|
|
These still aren't hooked up to anything in the writers.
|
|
(Markdown reader.)
|
|
See #761.
|
|
|
|
In this case \title, \subject are used instead of \chapter,
\section.
|
|
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
|
|
Otherwise we get LaTeX errors.
|
|
Previously the numbering restarted from 1 in each chapter
(with `--number-sections`), though the numbers in the table
of contents were correct.
Note that this fix is a bit hackish and possibly fragile:
if the rendering of section numbers in HTML changes in the
future, it may break. But it works, without needing
changes in other modules.
|
|
|
|
Added tests for entities in titles and links.
Closes #723.
|
|
A markdown link `<http://göogle.com>` should
be a link to http://göogle.com.
|
|
We no longer need to use fromEntities on titles.
|