Age | Commit message (Collapse) | Author | Files | Lines |
|
This caused problems with array environments. Closes #891.
|
|
* Depend on pandoc 1.12.
* Added yaml dependency.
* `Text.Pandoc.XML`: Removed `stripTags`. (API change.)
* `Text.Pandoc.Shared`: Added `metaToJSON`.
This will be used in writers to create a JSON object for use
in the templates from the pandoc metadata.
* Revised readers and writers to use the new Meta type.
* `Text.Pandoc.Options`: Added `Ext_yaml_title_block`.
* Markdown reader: Added support for YAML metadata block.
Note that it must come at the beginning of the document.
* `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`,
`stateAuthors`, `stateDate` with `stateMeta`.
* RST reader: Improved metadata.
Treat initial field list as metadata when standalone specified.
Previously ALL fields "title", "author", "date" in field lists
were treated as metadata, even if not at the beginning.
Use `subtitle` metadata field for subtitle.
* `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string
instead of a compiled template..
* OPML template: Use 'for' loop for authors.
* Org template: '#+TITLE:' is inserted before the title.
Previously the writer did this.
|
|
Previously the labels were only created when there were links to
the section in the document.
Closes #871.
|
|
This fixes a bug wherein notes were numbered incorrectly
in tables. Closes #827.
Now that we are using longtable, we can just use regular
`\footnote` commands for notes, which simplifies the code
considerably.
|
|
This gives
. . .
a pause.
|
|
* 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
|
|
If "numberLines" class is present, we add "numbers=left";
if "startFrom" is present, we add "firstnumber=".
Partially addresses #763.
|
|
Otherwise we get LaTeX errors.
|
|
|
|
Starred variants of section commands used when header
has "unnumbered" class.
|
|
Sec now includes a field for Attr rather than just String
(the identifier).
Note, this is an API change.
|
|
Thanks to Nick Bart for the suggestion of using @{}.
|
|
if --listings is used.
Closes #704.
|
|
|
|
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
|
|
* In markdown reader, add a '\1' character to the beginning
of the title of an image that is alone in its paragraph,
if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
it as a figure if possible.
* Updated tests.
This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
|
|
This avoids a clash with highlighting-kate's macros, which
redefine | as a short verbatim delimiter. Thanks to
Björn Peemöller for raising this issue.
|
|
This seems to match the spacing of ~ exactly.
|
|
Since `~` spaces after a line break are just ignored.
Closes #687.
|
|
This was associated with e1be934dc2ff061e5200017d6503280686983e1f.
|
|
Previously header ids were autogenerated by the writers.
Now they are generated (unless supplied explicitly) in the
markdown parser, if the `header_identifiers` extension is
selected.
In addition, the textile reader now supports id attributes on
headers.
|
|
|
|
|
|
This allows verbatim code to be included in grid tables.
Closes #663.
|
|
|
|
|
|
We were using [fragile] on slides even if they only contained
code that was rendered using `\texttt`. Now `[fragile]` is
only used for slides containing inline code if that code
is rendered using listings. Closes #649.
|
|
Instead, use standard LaTeX commands to change numbering style.
|
|
Closes #576.
|
|
|
|
|
|
It causes the heading to be a different size form the body,
sometimes.
|
|
|
|
- Removed writerLiterateHaskell from WriterOptions.
- Removed readerLiterateHaskell from ReaderOptions.
- Added Ext_literate_haskell to Extensions. Test for this
instead of the above.
- Removed failUnlessLHS from Shared.
Note: At this point, +lhs and .lhs extension no longer has any effect.
Need to fix.
|
|
Closes #581.
|
|
|
|
We now use a slide-level header with contents [Str "\0"] to mark
an hrule break. This avoids creation of an empty H1 in these
contexts.
Closes #484.
|
|
When `--incremental` is used, lists inside block quotes should
appear all at once (as in HTML).
|
|
This fixes a regression. Also added a test for this.
|
|
|
|
This can cause LaTeX errors, as they are interpreted as new paragraphs.
|
|
This is useful for those who want to use advanced OpenType features
with xelatex/lualatex.
|
|
verbatim, itemize, description, enumerate.
|
|
Closes #502. Previously you'd get:
~~~
hi
\begin{quote}
hi
\end{quote}
hi
~~~
Now we get:
~~~
hi
\begin{quote}
hi
\end{quote}
hi
~~~
|
|
|
|
Previously we used `\href{\#ident}{text}`, which didn't work on
all systems. Thanks to Dirk Laurie.
|
|
|
|
Closes #459.
|
|
|
|
\setmainlanguage will now just use the last of a comma-separated
list of languages.
|