Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
|
|
Starred variants of section commands used when header
has "unnumbered" class.
|
|
Note: The attributes go on the enclosing section or div
if `--section-divs` is specified.
Also fixed a regression (only now noticed) in html+lhs output.
Previously the bird tracks were being omitted.
|
|
Unnumbered sections get [] for their section number.
So far only the HTML writer has been adjusted to be sensitive
to this.
If we keep this change, all the writers will need to be changed
either (a) to directly check for the "unnumbered" class, if they
do section numbering themselves, or (b) to check for a null section
number, if they use hierarchicalize.
|
|
|
|
Sec now includes a field for Attr rather than just String
(the identifier).
Note, this is an API change.
|
|
Now if mmd_title_blocks is specified, pandoc will parse a
MMD title block if it sees one, even if pandoc_title_blocks is enabled.
|
|
|
|
Parsing failed if you had an unquoted attribute immediately
before the final '}'.
|
|
Closes #746.
|
|
|
|
Closes #743.
|
|
This reverts commit d46f434d4b8906ae3b983e568549213de94fd1a2.
|
|
|
|
|
|
Note: Currently this only affects the markdown reader.
|
|
* Citations will work in markdown even if `--biblio` isn't
specified. Note: this may cause unexpected behavior for people
who use strings of the form `@foo` that are not citations!
* If `--biblio` isn't used, the markdown writer will write markdown
citations rather than CSL-rendered citations.
* This means, for example, that you can do `pandoc -f latex -t markdown`
and convert biblatex or natbib citations into pandoc citations.
|
|
|
|
The call to toLower in ciMatch was very expensive (and very often
used), because toLower from Data.Char calls a fully unicode
aware function. This optimization avoids the call to toLower
for the most common, ASCII cases. This dramatically reduces the
speed penalty that comes from enabling the `autolink_bare_uris`
extension. The penalty is still substantial (in one test, from 0.33s
to 0.44s), but nowhere near what it used to be.
|
|
|
|
Closes #725.
|
|
Now latex macro definitions are preserved when output is latex,
and applied when it is another format, as originally intended.
Partially addresses #730.
\providecommand is still not supported. For this we need changes
to texmath.
|
|
Thanks to Nick Bart for the suggestion of using @{}.
|
|
These are no longer used in the default template, since we use
titleblock, but we set them anyway for nondefault template users.
|
|
Mediawiki reader: Don't require blanklines after tables.
|
|
This fixes a subtle regression involving grid tables with
empty cells. Closes #732.
Also added test for grid table with empty cells.
|
|
|
|
Closes #721.
Also fixed whitespace in lhs tests.
|
|
Previously we also checked for a null title, but this
test fails for links produced by citeproc-hs in bibliographies.
So, if the link has a title, it will be lost on conversion
to an autolink, but that seems okay.
|
|
We no longer needed the smart quote complexity, because of
improvements to singleQuoteStart and singleQuoteEnd.
And we were able to move the check for intraword underscore
to the emphasis parser.
|
|
`hello <url>`__
Closes #724.
|
|
|
|
|
|
From definitionListItem.
Slight performance improvement.
|