| Commit message (Collapse) | Author | Age |
|
|
|
| |
This reverts commit 476b383c578699567ac4630391a15855521ab3d4.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These changes are intended to make the writer more
useful to people who are processing small fragments,
which may for example look like this:
### third level header from previous section
## second level header
Previously such fragments got turned into two
headers of the same level. The new algorithm
avoids doing any normalization until we hit the
minimal-level header in the fragment (here, the
second level header).
Closes #2394.
|
| |
|
|
|
|
|
|
| |
This is needed for the Generic instance of PandocError.
Closes #2448.
|
| |
|
|
|
|
|
|
|
| |
HTML, LaTeX writers adjusted.
The special characters are '<','>','|','"','{','}','[',']','^', '`'.
Closes #1640, #2377.
|
|
|
|
| |
Closes #2386.
|
|
|
|
|
|
|
|
|
|
| |
Previously `<section>` tags were just parsed as raw HTML
blocks. With this change, section elements are parsed as
Div elements with the class "section". The HTML writer will
use `<section>` tags to render these Divs in HTML5; otherwise
they will be rendered as `<div class="section">`.
Closes #2438.
|
| |
|
|
|
|
|
|
| |
Thanks Andrew Dunning.
Updated tests and changelog.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Added support for <xref> tag in DocBook reader
|
| |
| |
| |
| |
| |
| |
| | |
docbook-xsl, a set of XSLT scripts to generate HMTL out of DocBook,
tries harder to generate a nice xref text. Depending on the element
being linked to, it looks at the title or other descriptive child
elements. Let's do that, too.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'xref' is used to create cross references to other parts of the
document. It is an empty element - the cross reference text depends on
various attributes. Quoting 'DocBook: The Definitive Guide':
1. If the endterm attribute is specified on xref, the content of the
element pointed to by endterm will be used as the text of the
cross-reference.
2. Otherwise, if the object pointed to has a specified XRefLabel, the
content of that attribute will be used as the cross-reference text.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Having access to the entire document will be needed when handling
elements which refer to other elements. This is needed for e.g. <xref>
or <link>, both of which reference other elements (by the 'id'
attribute) for the label text.
I suppose that in practice, the [Content] returned by parseXML always
only contains one 'Elem' value -- the document element. However, I'm not
totally sure about it, so let's just pass all the Content along.
|
| |
| |
| |
| |
| |
| | |
I plan to use the parsed and normalized XML tree read in readDocBook in
other places - prepare that commit by factoring this code out into a
separate, shared, definition.
|
| |
| |
| |
| | |
Thanks to Grégoire Pineau.
|
| | |
|
|\ \
| | |
| | | |
Change variable to polyglossia-lang.name and .options
|
| | |
| | |
| | |
| | | |
closes #2437
|
| | |
| | |
| | |
| | |
| | | |
The actual definition has been moved to Text.Pandoc.Shared,
but to avoid breaking changes we reexport it here.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Added comment stating that the page is autogenerated by
pandoc, giving version.
- Added `adjusting` and `hyphenate` variables.
- Documented new variables.
|
|\ \ \
| | | |
| | | | |
Better man writer (revised)
|
| | | |
| | | |
| | | |
| | | | |
* src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`src/Text/Pandoc/Shared.hs`, so that all Writers can access this variable
without importing `src/Text/Pandoc.hs`, preventing circular import.
* pandoc.hs: Import pandocVersion from `Text.Pandoc.Shared`.
* src/Text/Pandoc.hs: Remove the definition of pandocVersion
and relevant import.
* src/Text/Pandoc/Shared.hs: Add the definition of pandocVersion
and relevant import.
|
| | | |
| | | |
| | | |
| | | | |
* src/Text/Pandoc/Writers/Man.hs: Set $hyphenate$ to be true.
|
|\ \ \ \
| | | | |
| | | | | |
Improve links and cross-references in README.
|
| | | | |
| | | | |
| | | | | |
Template configured to set `setstretch` directly rather than package options.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This should help with older versions of cabal which
can't handle custom preprocessors.
See
http://stackoverflow.com/questions/16256987/haskell-packaging-cabal-package-with-custom-preprocessors
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Using anything outside base is dangerous, since older
versions of ghc will link against two different versions.
See e.g.
- https://groups.google.com/forum/#!topic/pandoc-discuss/0r9Hhl730LY
- https://www.reddit.com/r/haskell/comments/3634x2/cabal_is_giving_a_weird_error_when_attempting_to/
- jaspervdj/hakyll#356
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Made make_travis_yml.hs a bit more robust.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Really close #2446.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Closes #2446.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Autgenerated using make_travis_yml.hs.
This script has been modified to add GHCOPTS.
'make .travis.yml' regenerates it based on the tested-with
field of the cabal file.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- Follows template on hvr/multi-ghc-travis.
- Don't build with ghc 7.4.2.
- Build tarball after main build.
|
| | | | | |
|
|/ / / / |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Can't get stack build to work.
With 64 bit, we run into problems building hslua.
https://github.com/osa1/hslua/issues/22
With 32 bit, we run into problems with missing
symbol __mingw_vsprintf in building cmark.
|