summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/DocBook.hs
Commit message (Collapse)AuthorAge
* Source code reformatting.John MacFarlane2017-10-29
|
* hlint changes.John MacFarlane2017-10-27
|
* Fix a typo: s/collabarators/collaborators/Alexander Krotov2017-09-26
|
* Move CR filtering from tabFilter to the readers.John MacFarlane2017-06-20
| | | | | | | | | | The readers previously assumed that CRs had been filtered from the input. Now we strip the CRs in the readers themselves, before parsing. (The point of this is just to simplify the parsers.) Shared now exports a new function `crFilter`. [API change] And `tabFilter` no longer filters CRs.
* Use Control.Monad.State.Strict throughout.John MacFarlane2017-06-17
| | | | | This gives 20-30% speedup and reduction of memory usage in most of the writers.
* Changed all readers to take Text instead of String.John MacFarlane2017-06-10
| | | | | | | | Readers: Renamed StringReader -> TextReader. Updated tests. API change.
* Working on readers.Jesse Rosenthal2017-01-25
|
* Fixed xref lookup in DocBook reader. Closes #3243.John MacFarlane2016-11-19
| | | | | It previously only worked when the qnames lacked the docbook namespace URI.
* Parse line-oriented markup as LineBlockAlbert Krewinkel2016-10-13
| | | | | | | | Markup-features focusing on lines as distinctive part of the markup are read into `LineBlock` elements. This currently means line blocks in reStructuredText and Markdown (the latter only if the `line_block` extension is enabled), the `linegroup`/`line` combination from the Docbook 5.1 working draft, and Org-mode `VERSE` blocks.
* Remove TagSoup compatJesse Rosenthal2016-09-02
| | | | | | | We already lower-bound tagsoup at 0.13.7, which means we were always running the compatibility layer (it was conditional on min value 0.13). Better to just use `lookupEntity` from the library directly, and convert a string to a char if need be.
* Remove Text.Pandoc.Compat.ExceptJesse Rosenthal2016-09-02
|
* Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane2015-11-19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
| * Updated readers, writers and README for link attributemb212015-08-07
| |
| * Updated readers and writers for new image attribute parameter.John MacFarlane2015-08-07
| | | | | | | | (mb21)
* | Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | | | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* | Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | | | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* | Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* | Improve text generated for <xref> by employing docbook-xsl heuristicsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | 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.
* | Added proper support for DocBook 'xref' elementsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | '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.
* | Pass the parsed DocBook content along the state of readDocBookFrerich Raabe2015-09-23
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Minor refactoring to readDocBookFrerich Raabe2015-09-23
| | | | | | | | | | | | 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.
* | DocBook reader: handle informalexample.John MacFarlane2015-08-08
|/ | | | | | It is parsed into a Div with class `informalexample`. Closes #2319.
* DocBook reader mediaobjects and figures, closes #2184mb212015-06-21
|
* Removed redundat import.John MacFarlane2015-04-07
|
* DocBook reader: look inside "info" elements for section titles.John MacFarlane2015-04-07
| | | | Closes #1931.
* Change return type of DocBook readerMatthew Pickering2015-02-18
|
* DocBook readers: Include id on section headers.John MacFarlane2014-12-14
| | | | Closes #1818.
* DocBook reader: Handle menuchoice elements better.John MacFarlane2014-12-14
| | | | | They are now rendered with a `>` between them. Closes #1817.
* DocBook reader: get string content in inner tags for literal elements.John MacFarlane2014-12-14
| | | | Closes #1816.
* DocBook reader: handle keycombo, keycap.John MacFarlane2014-12-14
| | | | Closes #1815.
* DocBook reader: document/test "type" as implementedBryan O'Sullivan2014-12-08
|
* DocBook reader: add support for classnameBryan O'Sullivan2014-12-08
|
* DocBook reader: add support for calloutlist and calloutBryan O'Sullivan2014-12-08
| | | | We treat a calloutlist as a bulleted list. This works well in practice.
* DocBook: Support equations with mathml.John MacFarlane2014-08-12
| | | | equation, informalequation, inlineequation and mml:math elements.
* DocBook reader: Better handle elements inside code environments.John MacFarlane2014-07-23
| | | | | Of course, we can't include structure in the code block, but this way we at least preserve the text. Closes #1449.
* DocBook reader: Support <?asciidoc-br?>.John MacFarlane2014-06-17
| | | | | | | | | Closes #1236. Note, this is a bit of a kludge, to work around the fact that xml-light doesn't parse `<?asciidoc-br?>` correctly. We preprocess the input, replacing that instruction with `<br/>`, and then parse that as a line break. Other XML instructions are simply removed from the input stream.
* DocBook reader: Better treatment of formalpara.John MacFarlane2014-04-04
| | | | | | | We now emit the title (if present) as a separate paragraph with boldface text. Closes #1215.
* DocBook reader: set metadata "author" not "authors"John MacFarlane2014-04-04
|
* Removed trailing whitespace.John MacFarlane2014-04-04
|
* DocBook reader: set "author" not "authors".John MacFarlane2014-04-04
|
* Added recognition of authorgroup element and releaseinfo element to DocBook ↵Matthew Pickering2014-04-04
| | | | | | reader. Closes #1214
* Converted current meta information parsing in DocBook to a more extensible ↵Matthew Pickering2014-04-04
| | | | version which is aware of the more recent meta representation.
* HLint: use fromMaybeHenry de Valence2013-12-19
| | | | Replace uses of `maybe x id` with `fromMaybe x`.
* Docbook reader: Avoid failure if tbody contains no tr or row elements.John MacFarlane2013-12-16
|
* DocBook reader: Handle numerical attributes starting with decimal.John MacFarlane2013-10-22
| | | | Also use safeRead instead of read.
* Added Text.Pandoc.Compat.TagSoupEntity.John MacFarlane2013-08-08
| | | | | This allows pandoc to compile with tagsoup 0.13.x. Thanks to Dirk Ullrich for the patch.
* Don't put the text of an autolink in Code font.John MacFarlane2013-01-06
|
* DocBook reader: Support title in "figure" element.John MacFarlane2012-11-02
| | | | Closes #650.
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* Changed reader parameters from ParserState to ReaderOptions.John MacFarlane2012-07-25
|