aboutsummaryrefslogtreecommitdiff
path: root/test/writer.jats
AgeCommit message (Collapse)AuthorFilesLines
2019-07-06Updating JATS template to v1.1dtd (#5632)Arfon Smith1-2/+2
* Updating JATS template to v1.1dtd * Update writer.jats
2019-06-11Revert "JATS template: don't include journal-meta unless 'journal'..."John MacFarlane1-0/+7
This reverts commit 193b5ccebaceeb7c0959d40136a1a4d2aeb00c95. journal-meta is required. Better to include it even if it doesn't validate through lack of required fields.
2019-06-11JATS template: don't include journal-meta unless 'journal'...John MacFarlane1-7/+0
...is set in metadata. Otherwise we get validation errors.
2019-06-11JATS writer: ensure validity of pub-date.John MacFarlane1-2/+4
We try to parse the date and convert to year, month, day, as expected in pub-date. We also add an iso-8601-date attribute if possible.
2019-06-11JATS writer: don't use break element for LineBreak.John MacFarlane1-1/+2
It's only allowed in a few special contexts, and not in p elements.
2019-06-11JATS writer: don't embed string-name in string.John MacFarlane1-4/+0
That's illegal with this DTD.
2019-06-11JATS writer: wrap elements with p when needed.John MacFarlane1-13/+21
The JATS spec restricts contents of certain elements (fn, list-item); this patch wraps elements that can't go in these contexts inside p elements with specific-use "wrapper", so the documents will conform. Closes #5570.
2019-05-16JATS writer: properly handle footnotes.John MacFarlane1-21/+31
"Best Practice: When footnotes are grouped at the end of an article, wrap them in a `<fn-group>` and use an `<xref>` element in the text, as usual, to tie each footnote in the list to a particular location in the text." Closes #5511.
2019-02-10JATS writer: wrap figure caption in <p> to fix validation (#5292)Mauro Bieg1-1/+1
closes #5290
2018-09-27JATS writer: remove 'role' attribute on 'bold' and 'sc' elements.John MacFarlane1-7/+6
The JATS spec does not allow these. Closes #4937.
2018-03-05Remove extraneous, significant whitespace in JATS writer output (#4335)Nokome Bentley1-923/+357
This patch fixes some cases where the JATS writer was introducing semantically significant whitespace by indenting and wrapping tags. Note that the JATS spec has a content model for `<p>` tags of `(#PCDATA | ...`. Any tag where `#PCDATA` children are possible should not have any indentation. The same is true for `<th>`, `<td>`, `<term>`, `<label>`.
2017-12-14Deduplicate JATS writer image mime type codeHamish Mackenzie1-1/+1
2017-10-31Properly pass through author metadata in JATS writer.John MacFarlane1-0/+12
Closes #4020.
2017-06-30Updated jats tests for new texmath version.John MacFarlane1-1/+1
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-6/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-03-31JATS template: always include `<back>` element even if empty.John MacFarlane1-0/+2
2017-03-31JATS writer: put references in `<back>`.John MacFarlane1-1217/+1215
Modified template to include a `<back>` and `<body>` section. This should give authors more flexibility, e.g. to put acknowledgements metadata in `<back>`. References are automatically extracted and put into `<back>`.
2017-03-30JATS writer: use both tex and mml alternatives for math when possible.John MacFarlane1-8/+21
2017-03-30JATS writer: Fixed bibliography handling.John MacFarlane1-6/+10
2017-03-30Added JATS writer.John MacFarlane1-0/+1425
* New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.