summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnMacFarlane <>2019-09-26 01:00:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-09-26 01:00:00 (GMT)
commit898eb6a14392168fb56987459b92b9cc0c60603e (patch)
treee877b5a32b682d7a47caca10dc20937722ab39ac
parenta35b843c10b0eade1433dc07c82d394ef21d6548 (diff)
version 0.16.30.16.3
-rw-r--r--changelog14
-rw-r--r--chicago-author-date.csl14
-rw-r--r--compat/Text/CSL/Compat/Pandoc.hs4
-rw-r--r--locales/locales-bg-BG.xml238
-rwxr-xr-x[-rw-r--r--]locales/locales-el-GR.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-en-GB.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-en-US.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-es-MX.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-fi-FI.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-id-ID.xml0
-rw-r--r--locales/locales-it-IT.xml2
-rw-r--r--locales/locales-la.xml309
-rw-r--r--locales/locales-mn-MN.xml140
-rw-r--r--locales/locales-ro-RO.xml28
-rw-r--r--locales/locales-sl-SI.xml2
-rwxr-xr-x[-rw-r--r--]locales/locales-sv-SE.xml0
-rwxr-xr-x[-rw-r--r--]locales/locales-vi-VN.xml0
-rw-r--r--locales/locales-zh-CN.xml10
-rw-r--r--pandoc-citeproc.cabal69
-rw-r--r--src/Text/CSL/Input/Bibtex.hs5
-rw-r--r--src/Text/CSL/Input/Bibutils.hs18
-rwxr-xr-x[-rw-r--r--]src/Text/CSL/Pandoc.hs42
-rw-r--r--stack.yaml16
-rw-r--r--tests/chicago-author-date.expected.native2
-rw-r--r--tests/issue118.expected.native4
-rw-r--r--tests/issue119.expected.native2
-rw-r--r--tests/issue13.expected.native2
-rw-r--r--tests/issue14.expected.native8
-rw-r--r--tests/issue152.expected.native2
-rw-r--r--tests/issue175.expected.native2
-rw-r--r--tests/issue197.expected.native2
-rw-r--r--tests/issue213.expected.native2
-rw-r--r--tests/issue25.expected.native4
-rw-r--r--tests/issue250.expected.native2
-rw-r--r--tests/issue292.expected.native2
-rw-r--r--tests/issue301.expected.native2
-rw-r--r--tests/issue307.expected.native2
-rw-r--r--tests/issue312.expected.native2
-rw-r--r--tests/issue320.expected.native2
-rw-r--r--tests/issue320a.expected.native2
-rw-r--r--tests/issue325.expected.native2
-rw-r--r--tests/issue338.expected.native2
-rw-r--r--tests/issue351.expected.native2
-rw-r--r--tests/issue356.expected.native2
-rw-r--r--tests/issue360.expected.native2
-rw-r--r--tests/issue371.expected.native2
-rw-r--r--tests/issue38.expected.native2
-rw-r--r--tests/issue47.expected.native2
-rw-r--r--tests/issue51.expected.native2
-rw-r--r--tests/issue57.expected.native4
-rw-r--r--tests/issue58.expected.native4
-rw-r--r--tests/issue61.expected.native2
-rw-r--r--tests/issue64.expected.native2
-rw-r--r--tests/issue65.expected.native4
-rw-r--r--tests/issue68.expected.native2
-rw-r--r--tests/issue7.expected.native2
-rw-r--r--tests/issue70.expected.native2
-rw-r--r--tests/issue75.expected.native4
-rw-r--r--tests/issue76.expected.native10
-rw-r--r--tests/issue77.expected.native2
-rw-r--r--tests/issue82.expected.native2
-rw-r--r--tests/issue87.expected.native2
-rw-r--r--tests/jats.csl208
-rw-r--r--tests/mhra.expected.native2
-rw-r--r--tests/no-author.expected.native2
-rw-r--r--tests/number-of-volumes.expected.native4
66 files changed, 709 insertions, 522 deletions
diff --git a/changelog b/changelog
index 2ca4612..ed8c439 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,17 @@
+pandoc-citeproc (0.16.3)
+
+ * Set `hanging-indent` class on `refs` Div if specified by the style (#410).
+ This depends on whether the `hanging-indent` attribute of
+ `<bibliography>` is true.
+ * Update chicago-author-date.csl and locales.
+ * Add new biblatex @dataset entry type (#413).
+ * Cleanup cabal file and remove old ghc 6.10 conditional.
+ * Replace some of the yaml use with HsYAML-aeson (vijayphoenix).
+ * Allow xml-conduit 1.9.
+ * Allow network 3.1.
+ * Allow pandoc 2.8.
+ * Use pandoc-types 1.17.6.1
+
pandoc-citeproc (0.16.2)
* Normalize for sorting by padding numerical strings with 0s (#399).
diff --git a/chicago-author-date.csl b/chicago-author-date.csl
index 92ec51e..32d0cab 100644
--- a/chicago-author-date.csl
+++ b/chicago-author-date.csl
@@ -44,7 +44,7 @@
</locale>
<macro name="secondary-contributors">
<choose>
- <if type="chapter paper-conference" match="none">
+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="none">
<group delimiter=". ">
<names variable="editor translator" delimiter=". ">
<label form="verb" text-case="capitalize-first" suffix=" "/>
@@ -60,7 +60,7 @@
</macro>
<macro name="container-contributors">
<choose>
- <if type="chapter paper-conference" match="any">
+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<group prefix=", " delimiter=", ">
<names variable="container-author" delimiter=", ">
<label form="verb" suffix=" "/>
@@ -253,7 +253,7 @@
</else>
</choose>
</if>
- <else-if type="chapter paper-conference" match="any">
+ <else-if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" " prefix=", ">
@@ -320,7 +320,7 @@
</group>
</group>
</else-if>
- <else-if type="chapter paper-conference" match="any">
+ <else-if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<choose>
<if variable="page" match="none">
<group prefix=". ">
@@ -334,7 +334,7 @@
</macro>
<macro name="locators-chapter">
<choose>
- <if type="chapter paper-conference" match="any">
+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<choose>
<if variable="page">
<group prefix=", ">
@@ -410,7 +410,7 @@
</macro>
<macro name="container-title">
<choose>
- <if type="chapter paper-conference" match="any">
+ <if type="chapter entry-dictionary entry-encyclopedia paper-conference" match="any">
<text macro="container-prefix" suffix=" "/>
</if>
</choose>
@@ -597,7 +597,7 @@
</else>
</choose>
</macro>
- <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year">
+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year" after-collapse-delimiter="; ">
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<choose>
diff --git a/compat/Text/CSL/Compat/Pandoc.hs b/compat/Text/CSL/Compat/Pandoc.hs
index 0104ba3..c2d8fdd 100644
--- a/compat/Text/CSL/Compat/Pandoc.hs
+++ b/compat/Text/CSL/Compat/Pandoc.hs
@@ -68,7 +68,7 @@ writeMarkdown = either mempty T.unpack . runPure . Pandoc.writeMarkdown
writePlain = either mempty T.unpack . runPure . Pandoc.writePlain def
-writeNative = either mempty T.unpack . runPure . Pandoc.writeNative def{ writerTemplate = Just "" }
+writeNative = either mempty T.unpack . runPure . Pandoc.writeNative def{ writerTemplate = Just mempty }
writeHtmlString = either mempty T.unpack . runPure . Pandoc.writeHtml4String
def{ writerExtensions = extensionsFromList
@@ -97,7 +97,7 @@ writeMarkdown = Pandoc.writeMarkdown def{
writePlain = Pandoc.writePlain def
-writeNative = Pandoc.writeNative def{ writerTemplate = Just "" }
+writeNative = Pandoc.writeNative def{ writerTemplate = Just mempty }
writeHtmlString = Pandoc.writeHtmlString def
#endif
diff --git a/locales/locales-bg-BG.xml b/locales/locales-bg-BG.xml
index 8624e8d..f930548 100644
--- a/locales/locales-bg-BG.xml
+++ b/locales/locales-bg-BG.xml
@@ -2,7 +2,12 @@
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="bg-BG">
<info>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
- <updated>2012-07-04T23:31:02+00:00</updated>
+ <updated>2018-02-15T04:14:02+00:00</updated>
+ <translator>
+ <name>Valeriya Simeonova</name>
+ <email>simeonova@fmi.uni-sofia.bg</email>
+ <uri>http://www.mendeley.com/profiles/valeriya-simeonova/</uri>
+ </translator>
</info>
<style-options punctuation-in-quote="false"/>
<date form="text">
@@ -20,18 +25,18 @@
<term name="and">и</term>
<term name="and others">и други</term>
<term name="anonymous">анонимен</term>
- <term name="anonymous" form="short">анон</term>
+ <term name="anonymous" form="short">анон.</term>
<term name="at">в</term>
- <term name="available at">available at</term>
- <term name="by">by</term>
- <term name="circa">circa</term>
- <term name="circa" form="short">c.</term>
+ <term name="available at">достъпен на</term>
+ <term name="by">от</term>
+ <term name="circa">около</term>
+ <term name="circa" form="short">ок.</term>
<term name="cited">цитиран</term>
<term name="edition">
<single>издание</single>
<multiple>издания</multiple>
</term>
- <term name="edition" form="short">изд</term>
+ <term name="edition" form="short">изд.</term>
<term name="et-al">и съавт.</term>
<term name="forthcoming">предстоящ</term>
<term name="from">от</term>
@@ -41,25 +46,25 @@
<term name="internet">интернет</term>
<term name="interview">интервю</term>
<term name="letter">писмо</term>
- <term name="no date">no date</term>
- <term name="no date" form="short">без дата</term>
+ <term name="no date">без дата</term>
+ <term name="no date" form="short">б.д.</term>
<term name="online">онлайн</term>
<term name="presented at">представен на</term>
<term name="reference">
- <single>reference</single>
- <multiple>references</multiple>
+ <single>източник</single>
+ <multiple>източници</multiple>
</term>
<term name="reference" form="short">
- <single>ref.</single>
- <multiple>refs.</multiple>
+ <single>изт.</single>
+ <multiple>изт.</multiple>
</term>
<term name="retrieved">изтеглен на</term>
- <term name="scale">scale</term>
- <term name="version">version</term>
+ <term name="scale">скала</term>
+ <term name="version">версия</term>
<!-- ANNO DOMINI; BEFORE CHRIST -->
- <term name="ad">AD</term>
- <term name="bc">BC</term>
+ <term name="ad">сл.хр.</term>
+ <term name="bc">пр.хр.</term>
<!-- PUNCTUATION -->
<term name="open-quote">„</term>
@@ -69,25 +74,59 @@
<term name="page-range-delimiter">–</term>
<!-- ORDINALS -->
- <term name="ordinal">th</term>
- <term name="ordinal-01">st</term>
- <term name="ordinal-02">nd</term>
- <term name="ordinal-03">rd</term>
- <term name="ordinal-11">th</term>
- <term name="ordinal-12">th</term>
- <term name="ordinal-13">th</term>
+ <term name="ordinal">то</term>
+ <term name="ordinal-01">во</term>
+ <term name="ordinal-02">ро</term>
+ <term name="ordinal-03">то</term>
+ <term name="ordinal-21">во</term>
+ <term name="ordinal-22">ро</term>
+ <term name="ordinal-33">то</term>
+ <term name="ordinal" gender-form="masculine">ти</term>
+ <term name="ordinal-01" gender-form="masculine">ви</term>
+ <term name="ordinal-02" gender-form="masculine">ри</term>
+ <term name="ordinal-03" gender-form="masculine">ти</term>
+ <term name="ordinal-21" gender-form="masculine">ви</term>
+ <term name="ordinal-22" gender-form="masculine">ри</term>
+ <term name="ordinal-33" gender-form="masculine">ти</term>
+ <term name="ordinal" gender-form="feminine">та</term>
+ <term name="ordinal-01" gender-form="feminine">ва</term>
+ <term name="ordinal-02" gender-form="feminine">ра</term>
+ <term name="ordinal-03" gender-form="feminine">та</term>
+ <term name="ordinal-21" gender-form="feminine">ва</term>
+ <term name="ordinal-22" gender-form="feminine">ра</term>
+ <term name="ordinal-33" gender-form="feminine">та</term>
<!-- LONG ORDINALS -->
- <term name="long-ordinal-01">first</term>
- <term name="long-ordinal-02">second</term>
- <term name="long-ordinal-03">third</term>
- <term name="long-ordinal-04">fourth</term>
- <term name="long-ordinal-05">fifth</term>
- <term name="long-ordinal-06">sixth</term>
- <term name="long-ordinal-07">seventh</term>
- <term name="long-ordinal-08">eighth</term>
- <term name="long-ordinal-09">ninth</term>
- <term name="long-ordinal-10">tenth</term>
+ <term name="long-ordinal-01">първo</term>
+ <term name="long-ordinal-02">вторo</term>
+ <term name="long-ordinal-03">третo</term>
+ <term name="long-ordinal-04">четвъртo</term>
+ <term name="long-ordinal-05">петo</term>
+ <term name="long-ordinal-06">шестo</term>
+ <term name="long-ordinal-07">седмo</term>
+ <term name="long-ordinal-08">осмo</term>
+ <term name="long-ordinal-09">деветo</term>
+ <term name="long-ordinal-10">десетo</term>
+ <term name="long-ordinal-01" gender-form="masculine">първи</term>
+ <term name="long-ordinal-02" gender-form="masculine">втори</term>
+ <term name="long-ordinal-03" gender-form="masculine">трети</term>
+ <term name="long-ordinal-04" gender-form="masculine">четверти</term>
+ <term name="long-ordinal-05" gender-form="masculine">пети</term>
+ <term name="long-ordinal-06" gender-form="masculine">шести</term>
+ <term name="long-ordinal-07" gender-form="masculine">седми</term>
+ <term name="long-ordinal-08" gender-form="masculine">осми</term>
+ <term name="long-ordinal-09" gender-form="masculine">девети</term>
+ <term name="long-ordinal-10" gender-form="masculine">десети</term>
+ <term name="long-ordinal-01" gender-form="feminine">първа</term>
+ <term name="long-ordinal-02" gender-form="feminine">втора</term>
+ <term name="long-ordinal-03" gender-form="feminine">трета</term>
+ <term name="long-ordinal-04" gender-form="feminine">четверта</term>
+ <term name="long-ordinal-05" gender-form="feminine">пета</term>
+ <term name="long-ordinal-06" gender-form="feminine">шеста</term>
+ <term name="long-ordinal-07" gender-form="feminine">седма</term>
+ <term name="long-ordinal-08" gender-form="feminine">осма</term>
+ <term name="long-ordinal-09" gender-form="feminine">девета</term>
+ <term name="long-ordinal-10" gender-form="feminine">десета</term>
<!-- LONG LOCATOR FORMS -->
<term name="book">
@@ -130,13 +169,10 @@
<single>страница</single>
<multiple>страници</multiple>
</term>
- <term name="number-of-pages">
- <single>страница</single>
- <multiple>страници</multiple>
- </term>
+ <term name="number-of-pages">брой страници</term>
<term name="paragraph">
- <single>параграф</single>
- <multiple>параграфи</multiple>
+ <single>абзац</single>
+ <multiple>абзаци</multiple>
</term>
<term name="part">
<single>част</single>
@@ -147,11 +183,11 @@
<multiple>раздели</multiple>
</term>
<term name="sub verbo">
- <single>sub verbo</single>
- <multiple>sub verbis</multiple>
+ <single>под раздел</single>
+ <multiple>под раздели</multiple>
</term>
<term name="verse">
- <single>стих</single>
+ <single>стихотворение</single>
<multiple>стихове</multiple>
</term>
<term name="volume">
@@ -160,37 +196,25 @@
</term>
<!-- SHORT LOCATOR FORMS -->
- <term name="book" form="short">кн</term>
- <term name="chapter" form="short">гл</term>
- <term name="column" form="short">кол</term>
- <term name="figure" form="short">фиг</term>
- <term name="folio" form="short">фол</term>
- <term name="issue" form="short">бр</term>
- <term name="line" form="short">l.</term>
- <term name="note" form="short">n.</term>
- <term name="opus" form="short">оп</term>
- <term name="page" form="short">
- <single>с</single>
- <multiple>с-ци</multiple>
- </term>
- <term name="number-of-pages" form="short">
- <single>с</single>
- <multiple>с-ци</multiple>
- </term>
- <term name="paragraph" form="short">п</term>
- <term name="part" form="short">ч</term>
- <term name="section" form="short">разд</term>
- <term name="sub verbo" form="short">
- <single>s.v.</single>
- <multiple>s.vv.</multiple>
- </term>
- <term name="verse" form="short">
- <single>ст</single>
- <multiple>ст-ове</multiple>
- </term>
+ <term name="book" form="short">кн.</term>
+ <term name="chapter" form="short">гл.</term>
+ <term name="column" form="short">кол.</term>
+ <term name="figure" form="short">фиг.</term>
+ <term name="folio" form="short">фол.</term>
+ <term name="issue" form="short">бр.</term>
+ <term name="line" form="short">р.</term>
+ <term name="note" form="short">бел.</term>
+ <term name="opus" form="short">оп.</term>
+ <term name="page" form="short">стр.</term>
+ <term name="number-of-pages" form="short">бр.стр.</term>
+ <term name="paragraph" form="short">абз.</term>
+ <term name="part" form="short">ч.</term>
+ <term name="section" form="short">разд.</term>
+ <term name="sub verbo" form="short">подразд.</term>
+ <term name="verse" form="short">ст.</term>
<term name="volume" form="short">
<single>том</single>
- <multiple>т-ове</multiple>
+ <multiple>томове</multiple>
</term>
<!-- SYMBOL LOCATOR FORMS -->
@@ -204,22 +228,16 @@
</term>
<!-- LONG ROLE FORMS -->
- <term name="director">
- <single>director</single>
- <multiple>directors</multiple>
- </term>
+ <term name="director">режисьор</term>
<term name="editor">
<single>редактор</single>
<multiple>редактори</multiple>
</term>
<term name="editorial-director">
- <single>editor</single>
- <multiple>editors</multiple>
- </term>
- <term name="illustrator">
- <single>illustrator</single>
- <multiple>illustrators</multiple>
+ <single>главен редактор</single>
+ <multiple>редакторски колектив</multiple>
</term>
+ <term name="illustrator">илюстрации</term>
<term name="translator">
<single>преводач</single>
<multiple>преводачи</multiple>
@@ -230,50 +248,44 @@
</term>
<!-- SHORT ROLE FORMS -->
- <term name="director" form="short">
- <single>dir.</single>
- <multiple>dirs.</multiple>
- </term>
+ <term name="director" form="short">реж.</term>
<term name="editor" form="short">
- <single>ред</single>
- <multiple>ред-ри</multiple>
+ <single>ред.</single>
+ <multiple>ред.кол.</multiple>
</term>
<term name="editorial-director" form="short">
- <single>ed.</single>
- <multiple>eds.</multiple>
- </term>
- <term name="illustrator" form="short">
- <single>ill.</single>
- <multiple>ills.</multiple>
+ <single>гл.ред.</single>
+ <multiple>гл.ред.кол.</multiple>
</term>
+ <term name="illustrator" form="short">ил.</term>
<term name="translator" form="short">
<single>прев</single>
- <multiple>прев-чи</multiple>
+ <multiple>прев.кол.</multiple>
</term>
<term name="editortranslator" form="short">
- <single>ed. &amp; tran.</single>
- <multiple>eds. &amp; trans.</multiple>
+ <single>ред. &amp; прев.</single>
+ <multiple>ред.кол. &amp; прев.</multiple>
</term>
<!-- VERB ROLE FORMS -->
- <term name="container-author" form="verb">by</term>
- <term name="director" form="verb">directed by</term>
+ <term name="container-author" form="verb">от</term>
+ <term name="director" form="verb">под общата редакция на</term>
<term name="editor" form="verb">редактиран от</term>
- <term name="editorial-director" form="verb">edited by</term>
- <term name="illustrator" form="verb">illustrated by</term>
+ <term name="editorial-director" form="verb">главен редактор</term>
+ <term name="illustrator" form="verb">илюстрации от</term>
<term name="interviewer" form="verb">интервюиран от</term>
<term name="recipient" form="verb">до</term>
- <term name="reviewed-author" form="verb">by</term>
+ <term name="reviewed-author" form="verb">рецензент</term>
<term name="translator" form="verb">преведен от</term>
- <term name="editortranslator" form="verb">edited &amp; translated by</term>
+ <term name="editortranslator" form="verb">редактирано &amp; преведено от</term>
<!-- SHORT VERB ROLE FORMS -->
- <term name="director" form="verb-short">dir.</term>
- <term name="editor" form="verb-short">ред</term>
- <term name="editorial-director" form="verb-short">ed.</term>
- <term name="illustrator" form="verb-short">illus.</term>
- <term name="translator" form="verb-short">прев</term>
- <term name="editortranslator" form="verb-short">ed. &amp; trans. by</term>
+ <term name="director" form="verb-short">п.о.р.</term>
+ <term name="editor" form="verb-short">ред.</term>
+ <term name="editorial-director" form="verb-short">гл.ред.</term>
+ <term name="illustrator" form="verb-short">ил.</term>
+ <term name="translator" form="verb-short">прев.</term>
+ <term name="editortranslator" form="verb-short">ред. &amp; прев. от</term>
<!-- LONG MONTH FORMS -->
<term name="month-01">Януари</term>
@@ -304,9 +316,9 @@
<term name="month-12" form="short">Дек</term>
<!-- SEASONS -->
- <term name="season-01">Spring</term>
- <term name="season-02">Summer</term>
- <term name="season-03">Autumn</term>
- <term name="season-04">Winter</term>
+ <term name="season-01">Пролет</term>
+ <term name="season-02">Лято</term>
+ <term name="season-03">Есен</term>
+ <term name="season-04">Зима</term>
</terms>
</locale>
diff --git a/locales/locales-el-GR.xml b/locales/locales-el-GR.xml
index 9de96c5..9de96c5 100644..100755
--- a/locales/locales-el-GR.xml
+++ b/locales/locales-el-GR.xml
diff --git a/locales/locales-en-GB.xml b/locales/locales-en-GB.xml
index 1d27e02..1d27e02 100644..100755
--- a/locales/locales-en-GB.xml
+++ b/locales/locales-en-GB.xml
diff --git a/locales/locales-en-US.xml b/locales/locales-en-US.xml
index be78c5e..be78c5e 100644..100755
--- a/locales/locales-en-US.xml
+++ b/locales/locales-en-US.xml
diff --git a/locales/locales-es-MX.xml b/locales/locales-es-MX.xml
index 69badf9..69badf9 100644..100755
--- a/locales/locales-es-MX.xml
+++ b/locales/locales-es-MX.xml
diff --git a/locales/locales-fi-FI.xml b/locales/locales-fi-FI.xml
index bd09f6e..bd09f6e 100644..100755
--- a/locales/locales-fi-FI.xml
+++ b/locales/locales-fi-FI.xml
diff --git a/locales/locales-id-ID.xml b/locales/locales-id-ID.xml
index 1b669b8..1b669b8 100644..100755
--- a/locales/locales-id-ID.xml
+++ b/locales/locales-id-ID.xml
diff --git a/locales/locales-it-IT.xml b/locales/locales-it-IT.xml
index 4576bcc..d096381 100644
--- a/locales/locales-it-IT.xml
+++ b/locales/locales-it-IT.xml
@@ -72,7 +72,7 @@
<term name="page-range-delimiter">–</term>
<!-- ORDINALS -->
- <term name="ordinal">°</term>
+ <term name="ordinal">º</term>
<!-- LONG ORDINALS -->
<term name="long-ordinal-01">prima</term>
diff --git a/locales/locales-la.xml b/locales/locales-la.xml
new file mode 100644
index 0000000..c547463
--- /dev/null
+++ b/locales/locales-la.xml
@@ -0,0 +1,309 @@
+<?xml version="1.0" encoding="utf-8"?>
+<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="la">
+ <info>
+ <translator>
+ <name>Andrew Dunning</name>
+ </translator>
+ <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
+ <updated>2019-01-21T13:33:33+00:00</updated>
+ </info>
+ <style-options punctuation-in-quote="false"/>
+ <date form="text">
+ <date-part name="day" suffix=" "/>
+ <date-part name="month" suffix=" "/>
+ <date-part name="year"/>
+ </date>
+ <date form="numeric">
+ <date-part name="day" form="numeric-leading-zeros" suffix="/"/>
+ <date-part name="month" form="numeric-leading-zeros" suffix="/"/>
+ <date-part name="year"/>
+ </date>
+ <terms>
+ <term name="accessed">consultatus</term>
+ <term name="and">et</term>
+ <term name="and others">et alii</term>
+ <term name="anonymous">anonymus</term>
+ <term name="anonymous" form="short">anon.</term>
+ <term name="at">ad</term>
+ <term name="available at">praestatus ad</term>
+ <term name="by">a</term>
+ <term name="circa">circa</term>
+ <term name="circa" form="short">c.</term>
+ <term name="cited">citatus</term>
+ <term name="edition">
+ <single>editio</single>
+ <multiple>editiones</multiple>
+ </term>
+ <term name="edition" form="short">ed.</term>
+ <term name="et-al">et al.</term>
+ <term name="forthcoming">futurus</term>
+ <term name="from">ab</term>
+ <term name="ibid">ibid.</term>
+ <term name="in">in</term>
+ <term name="in press">impressorio</term>
+ <term name="internet">interrete</term>
+ <term name="interview">congressus</term>
+ <term name="letter">epistula</term>
+ <term name="no date">sine die</term>
+ <term name="no date" form="short">s.d.</term>
+ <term name="online">in linea</term>
+ <term name="presented at">praebitus ad</term>
+ <term name="reference">
+ <single>relatio</single>
+ <multiple>relationes</multiple>
+ </term>
+ <term name="reference" form="short">
+ <single>rel.</single>
+ <multiple>rell.</multiple>
+ </term>
+ <term name="retrieved">recuperatus</term>
+ <term name="scale">scala</term>
+ <term name="version">uersio</term>
+
+ <!-- ANNO DOMINI; BEFORE CHRIST -->
+ <term name="ad">A.D.</term>
+ <term name="bc">A.C.</term>
+
+ <!-- PUNCTUATION -->
+ <term name="open-quote">‘</term>
+ <term name="close-quote">’</term>
+ <term name="open-inner-quote">“</term>
+ <term name="close-inner-quote">”</term>
+ <term name="page-range-delimiter">–</term>
+
+ <!-- ORDINALS -->
+ <term name="ordinal">º</term>
+
+ <!-- LONG ORDINALS -->
+ <term name="long-ordinal-01">primus</term>
+ <term name="long-ordinal-02">secundus</term>
+ <term name="long-ordinal-03">tertius</term>
+ <term name="long-ordinal-04">quartus</term>
+ <term name="long-ordinal-05">quintus</term>
+ <term name="long-ordinal-06">sextus</term>
+ <term name="long-ordinal-07">septimus</term>
+ <term name="long-ordinal-08">octauus</term>
+ <term name="long-ordinal-09">nonus</term>
+ <term name="long-ordinal-10">decimus</term>
+
+ <!-- LONG LOCATOR FORMS -->
+ <term name="book">
+ <single>liber</single>
+ <multiple>libri</multiple>
+ </term>
+ <term name="chapter">
+ <single>capitulum</single>
+ <multiple>capitula</multiple>
+ </term>
+ <term name="column">
+ <single>columna</single>
+ <multiple>columnae</multiple>
+ </term>
+ <term name="figure">
+ <single>figura</single>
+ <multiple>figurae</multiple>
+ </term>
+ <term name="folio">
+ <single>folium</single>
+ <multiple>folii</multiple>
+ </term>
+ <term name="issue">
+ <single>numerus</single>
+ <multiple>numeri</multiple>
+ </term>
+ <term name="line">
+ <single>linea</single>
+ <multiple>lineae</multiple>
+ </term>
+ <term name="note">
+ <single>nota</single>
+ <multiple>notae</multiple>
+ </term>
+ <term name="opus">
+ <single>opus</single>
+ <multiple>opera</multiple>
+ </term>
+ <term name="page">
+ <single>pagina</single>
+ <multiple>paginae</multiple>
+ </term>
+ <term name="number-of-pages">
+ <single>pagina</single>
+ <multiple>paginae</multiple>
+ </term>
+ <term name="paragraph">
+ <single>paragraphus</single>
+ <multiple>paragraphi</multiple>
+ </term>
+ <term name="part">
+ <single>pars</single>
+ <multiple>partes</multiple>
+ </term>
+ <term name="section">
+ <single>paragraphus</single>
+ <multiple>paragraphi</multiple>
+ </term>
+ <term name="sub verbo">
+ <single>sub uerbo</single>
+ <multiple>sub uerbis</multiple>
+ </term>
+ <term name="verse">
+ <single>versus</single>
+ <multiple>versus</multiple>
+ </term>
+ <term name="volume">
+ <single>tomus</single>
+ <multiple>tomi</multiple>
+ </term>
+
+ <!-- SHORT LOCATOR FORMS -->
+ <term name="book" form="short">lib.</term>
+ <term name="chapter" form="short">cap.</term>
+ <term name="column" form="short">col.</term>
+ <term name="figure" form="short">fig.</term>
+ <term name="folio" form="short">fol.</term>
+ <term name="issue" form="short">n.</term>
+ <term name="line" form="short">l.</term>
+ <term name="note" form="short">n.</term>
+ <term name="opus" form="short">op.</term>
+ <term name="page" form="short">
+ <single>p.</single>
+ <multiple>pp.</multiple>
+ </term>
+ <term name="number-of-pages" form="short">
+ <single>p.</single>
+ <multiple>pp.</multiple>
+ </term>
+ <term name="paragraph" form="short">par.</term>
+ <term name="part" form="short">pr.</term>
+ <term name="section" form="short">par.</term>
+ <term name="sub verbo" form="short">
+ <single>s.u.</single>
+ <multiple>s.uu.</multiple>
+ </term>
+ <term name="verse" form="short">
+ <single>u.</single>
+ <multiple>uu.</multiple>
+ </term>
+ <term name="volume" form="short">
+ <single>t.</single>
+ <multiple>tt.</multiple>
+ </term>
+
+ <!-- SYMBOL LOCATOR FORMS -->
+ <term name="paragraph" form="symbol">
+ <single>¶</single>
+ <multiple>¶¶</multiple>
+ </term>
+ <term name="section" form="symbol">
+ <single>§</single>
+ <multiple>§§</multiple>
+ </term>
+
+ <!-- LONG ROLE FORMS -->
+ <term name="director">
+ <single>director</single>
+ <multiple>directores</multiple>
+ </term>
+ <term name="editor">
+ <single>curator</single>
+ <multiple>curatores</multiple>
+ </term>
+ <term name="editorial-director">
+ <single>editor</single>
+ <multiple>editores</multiple>
+ </term>
+ <term name="illustrator">
+ <single>illustrator</single>
+ <multiple>illustratores</multiple>
+ </term>
+ <term name="translator">
+ <single>interpres</single>
+ <multiple>interpretes</multiple>
+ </term>
+ <term name="editortranslator">
+ <single>curator et interpres</single>
+ <multiple>curatores et interpretes</multiple>
+ </term>
+
+ <!-- SHORT ROLE FORMS -->
+ <term name="director" form="short">
+ <single>dir.</single>
+ <multiple>dirs.</multiple>
+ </term>
+ <term name="editor" form="short">
+ <single>cur.</single>
+ <multiple>curs.</multiple>
+ </term>
+ <term name="editorial-director" form="short">
+ <single>ed.</single>
+ <multiple>eds.</multiple>
+ </term>
+ <term name="illustrator" form="short">
+ <single>ill.</single>
+ <multiple>ills.</multiple>
+ </term>
+ <term name="translator" form="short">
+ <single>interp.</single>
+ <multiple>interps.</multiple>
+ </term>
+ <term name="editortranslator" form="short">
+ <single>cur. et interp.</single>
+ <multiple>curs. et interps.</multiple>
+ </term>
+
+ <!-- VERB ROLE FORMS -->
+ <term name="container-author" form="verb">a</term>
+ <term name="director" form="verb">a directione</term>
+ <term name="editor" form="verb">a cura</term>
+ <term name="editorial-director" form="verb">ab editione</term>
+ <term name="illustrator" form="verb">ab illustratione</term>
+ <term name="interviewer" form="verb">a congressione</term>
+ <term name="recipient" form="verb">a</term>
+ <term name="reviewed-author" form="verb">a</term>
+ <term name="translator" form="verb">a interpretatione</term>
+ <term name="editortranslator" form="verb">a cura et interpretatione</term>
+
+ <!-- SHORT VERB ROLE FORMS -->
+ <term name="director" form="verb-short">dir.</term>
+ <term name="editor" form="verb-short">cur.</term>
+ <term name="editorial-director" form="verb-short">ed.</term>
+ <term name="illustrator" form="verb-short">illus.</term>
+ <term name="translator" form="verb-short">interp.</term>
+ <term name="editortranslator" form="verb-short">a cur. et interp.</term>
+
+ <!-- LONG MONTH FORMS -->
+ <term name="month-01">ianuarius</term>
+ <term name="month-02">februarius</term>
+ <term name="month-03">martius</term>
+ <term name="month-04">aprilis</term>
+ <term name="month-05">maius</term>
+ <term name="month-06">iunius</term>
+ <term name="month-07">iulius</term>
+ <term name="month-08">augustus</term>
+ <term name="month-09">september</term>
+ <term name="month-10">october</term>
+ <term name="month-11">nouember</term>
+ <term name="month-12">december</term>
+
+ <!-- SHORT MONTH FORMS -->
+ <term name="month-01" form="short">ian.</term>
+ <term name="month-02" form="short">feb.</term>
+ <term name="month-03" form="short">mar.</term>
+ <term name="month-04" form="short">apr.</term>
+ <term name="month-05" form="short">mai.</term>
+ <term name="month-06" form="short">iun.</term>
+ <term name="month-07" form="short">iul.</term>
+ <term name="month-08" form="short">aug.</term>
+ <term name="month-09" form="short">sep.</term>
+ <term name="month-10" form="short">oct.</term>
+ <term name="month-11" form="short">nou.</term>
+ <term name="month-12" form="short">dec.</term>
+
+ <!-- SEASONS -->
+ <term name="season-01">uer</term>
+ <term name="season-02">aestas</term>
+ <term name="season-03">autumnus</term>
+ <term name="season-04">hiems</term>
+ </terms>
+</locale>
diff --git a/locales/locales-mn-MN.xml b/locales/locales-mn-MN.xml
index a9b10dd..5a0c169 100644
--- a/locales/locales-mn-MN.xml
+++ b/locales/locales-mn-MN.xml
@@ -69,38 +69,32 @@
<term name="page-range-delimiter">–</term>
<!-- ORDINALS -->
- <term name="ordinal">th</term>
- <term name="ordinal-01">st</term>
- <term name="ordinal-02">nd</term>
- <term name="ordinal-03">rd</term>
- <term name="ordinal-11">th</term>
- <term name="ordinal-12">th</term>
- <term name="ordinal-13">th</term>
+ <term name="ordinal">-p</term>
<!-- LONG ORDINALS -->
- <term name="long-ordinal-01">first</term>
- <term name="long-ordinal-02">second</term>
- <term name="long-ordinal-03">third</term>
- <term name="long-ordinal-04">fourth</term>
- <term name="long-ordinal-05">fifth</term>
- <term name="long-ordinal-06">sixth</term>
- <term name="long-ordinal-07">seventh</term>
- <term name="long-ordinal-08">eighth</term>
- <term name="long-ordinal-09">ninth</term>
- <term name="long-ordinal-10">tenth</term>
+ <term name="long-ordinal-01">нэгдүгээр</term>
+ <term name="long-ordinal-02">хоёрдугаар</term>
+ <term name="long-ordinal-03">гуравдугаар</term>
+ <term name="long-ordinal-04">дөрөвдүгээр</term>
+ <term name="long-ordinal-05">тавдугаар</term>
+ <term name="long-ordinal-06">зургаадугаар</term>
+ <term name="long-ordinal-07">долоодугаар</term>
+ <term name="long-ordinal-08">наймдугаар</term>
+ <term name="long-ordinal-09">есдүгээр</term>
+ <term name="long-ordinal-10">аравдугаар</term>
<!-- LONG LOCATOR FORMS -->
<term name="book">
- <single>book</single>
- <multiple>books</multiple>
+ <single>ном</single>
+ <multiple>номнууд</multiple>
</term>
<term name="chapter">
<single>chapter</single>
<multiple>chapters</multiple>
</term>
<term name="column">
- <single>column</single>
- <multiple>columns</multiple>
+ <single>багана</single>
+ <multiple>баганууд</multiple>
</term>
<term name="figure">
<single>figure</single>
@@ -111,12 +105,12 @@
<multiple>folios</multiple>
</term>
<term name="issue">
- <single>number</single>
- <multiple>numbers</multiple>
+ <single>тоо</single>
+ <multiple>тоонууд</multiple>
</term>
<term name="line">
- <single>line</single>
- <multiple>lines</multiple>
+ <single>шугам</single>
+ <multiple>шугамнууд</multiple>
</term>
<term name="note">
<single>note</single>
@@ -127,12 +121,12 @@
<multiple>opera</multiple>
</term>
<term name="page">
- <single>page</single>
- <multiple>pages</multiple>
+ <single>хуудас</single>
+ <multiple>хуудаснууд</multiple>
</term>
<term name="number-of-pages">
- <single>page</single>
- <multiple>pages</multiple>
+ <single>хуудас</single>
+ <multiple>хуудаснууд</multiple>
</term>
<term name="paragraph">
<single>paragraph</single>
@@ -209,24 +203,24 @@
<multiple>directors</multiple>
</term>
<term name="editor">
- <single>editor</single>
- <multiple>editors</multiple>
+ <single>редактор</single>
+ <multiple>редакторууд</multiple>
</term>
<term name="editorial-director">
- <single>editor</single>
- <multiple>editors</multiple>
+ <single>редактор</single>
+ <multiple>редакторууд</multiple>
</term>
<term name="illustrator">
<single>illustrator</single>
<multiple>illustrators</multiple>
</term>
<term name="translator">
- <single>translator</single>
- <multiple>translators</multiple>
+ <single>орчуулагч</single>
+ <multiple>орчуулагчид</multiple>
</term>
<term name="editortranslator">
- <single>editor &amp; translator</single>
- <multiple>editors &amp; translators</multiple>
+ <single>редактор ба орчуулагч</single>
+ <multiple>редакторууд ба орчуулагчид</multiple>
</term>
<!-- SHORT ROLE FORMS -->
@@ -235,24 +229,24 @@
<multiple>dirs.</multiple>
</term>
<term name="editor" form="short">
- <single>ed</single>
- <multiple>eds</multiple>
+ <single>ред.</single>
+ <multiple>ред.</multiple>
</term>
<term name="editorial-director" form="short">
- <single>ed.</single>
- <multiple>eds.</multiple>
+ <single>ред.</single>
+ <multiple>ред.</multiple>
</term>
<term name="illustrator" form="short">
<single>ill.</single>
<multiple>ills.</multiple>
</term>
<term name="translator" form="short">
- <single>tran</single>
- <multiple>trans</multiple>
+ <single>орч</single>
+ <multiple>орч</multiple>
</term>
<term name="editortranslator" form="short">
- <single>ed. &amp; tran.</single>
- <multiple>eds. &amp; trans.</multiple>
+ <single>ред. ба орч.</single>
+ <multiple>ред. ба орч.</multiple>
</term>
<!-- VERB ROLE FORMS -->
@@ -276,37 +270,37 @@
<term name="editortranslator" form="verb-short">ed. &amp; trans. by</term>
<!-- LONG MONTH FORMS -->
- <term name="month-01">January</term>
- <term name="month-02">February</term>
- <term name="month-03">March</term>
- <term name="month-04">April</term>
- <term name="month-05">May</term>
- <term name="month-06">June</term>
- <term name="month-07">July</term>
- <term name="month-08">August</term>
- <term name="month-09">September</term>
- <term name="month-10">October</term>
- <term name="month-11">November</term>
- <term name="month-12">December</term>
+ <term name="month-01">Нэгдүгээр сар</term>
+ <term name="month-02">Хоёрдугаар сар</term>
+ <term name="month-03">Гуравдугаар сар</term>
+ <term name="month-04">Дөрөвдүгээр сар</term>
+ <term name="month-05">Тавдугаар сар</term>
+ <term name="month-06">Зургаадугаар сар</term>
+ <term name="month-07">Долдугаар сар</term>
+ <term name="month-08">Наймдугаар сар</term>
+ <term name="month-09">Есдүгээр сар</term>
+ <term name="month-10">Аравдугаар сар</term>
+ <term name="month-11">Арван нэгдүгээр сар</term>
+ <term name="month-12">Арван хоёрдугаар сар</term>
<!-- SHORT MONTH FORMS -->
- <term name="month-01" form="short">Jan</term>
- <term name="month-02" form="short">Feb</term>
- <term name="month-03" form="short">Mar</term>
- <term name="month-04" form="short">Apr</term>
- <term name="month-05" form="short">May</term>
- <term name="month-06" form="short">Jun</term>
- <term name="month-07" form="short">Jul</term>
- <term name="month-08" form="short">Aug</term>
- <term name="month-09" form="short">Sep</term>
- <term name="month-10" form="short">Oct</term>
- <term name="month-11" form="short">Nov</term>
- <term name="month-12" form="short">Dec</term>
+ <term name="month-01" form="short">1-р сар</term>
+ <term name="month-02" form="short">2-р сар</term>
+ <term name="month-03" form="short">3-р сар</term>
+ <term name="month-04" form="short">4-р сар</term>
+ <term name="month-05" form="short">5-р сар</term>
+ <term name="month-06" form="short">6-р сар</term>
+ <term name="month-07" form="short">7-р сар</term>
+ <term name="month-08" form="short">8-р сар</term>
+ <term name="month-09" form="short">9-р сар</term>
+ <term name="month-10" form="short">10-р сар</term>
+ <term name="month-11" form="short">11-р сар</term>
+ <term name="month-12" form="short">12-р сар</term>
<!-- SEASONS -->
- <term name="season-01">Spring</term>
- <term name="season-02">Summer</term>
- <term name="season-03">Autumn</term>
- <term name="season-04">Winter</term>
+ <term name="season-01">Хавар</term>
+ <term name="season-02">Зун</term>
+ <term name="season-03">Намар</term>
+ <term name="season-04">Өвөл</term>
</terms>
</locale>
diff --git a/locales/locales-ro-RO.xml b/locales/locales-ro-RO.xml
index 0600058..400009f 100644
--- a/locales/locales-ro-RO.xml
+++ b/locales/locales-ro-RO.xml
@@ -26,7 +26,7 @@
<term name="anonymous">anonim</term>
<term name="anonymous" form="short">anon.</term>
<term name="at">la</term>
- <term name="available at">valabil la</term>
+ <term name="available at">disponibil la</term>
<term name="by">de</term>
<term name="circa">circa</term>
<term name="circa" form="short">cca.</term>
@@ -70,7 +70,7 @@
<term name="close-quote">”</term>
<term name="open-inner-quote">«</term>
<term name="close-inner-quote">»</term>
- <term name="page-range-delimiter">-</term>
+ <term name="page-range-delimiter">–</term>
<!-- ORDINALS -->
<term name="ordinal">-lea</term>
@@ -212,8 +212,8 @@
<multiple>editori</multiple>
</term>
<term name="editorial-director">
- <single>editor</single>
- <multiple>editori</multiple>
+ <single>coordonator</single>
+ <multiple>coordonatori</multiple>
</term>
<term name="illustrator">
<single>ilustrator</single>
@@ -224,8 +224,8 @@
<multiple>traducători</multiple>
</term>
<term name="editortranslator">
- <single>editor &amp; traducător</single>
- <multiple>editori &amp; traducători</multiple>
+ <single>editor și traducător</single>
+ <multiple>editori și traducători</multiple>
</term>
<!-- SHORT ROLE FORMS -->
@@ -238,8 +238,8 @@
<multiple>ed.</multiple>
</term>
<term name="editorial-director" form="short">
- <single>ed.</single>
- <multiple>ed.</multiple>
+ <single>coord.</single>
+ <multiple>coord.</multiple>
</term>
<term name="illustrator" form="short">
<single>ilustr.</single>
@@ -250,29 +250,29 @@
<multiple>trad.</multiple>
</term>
<term name="editortranslator" form="short">
- <single>ed. &amp; trad.</single>
- <multiple>ed. &amp; trad.</multiple>
+ <single>ed. și trad.</single>
+ <multiple>ed. și trad.</multiple>
</term>
<!-- VERB ROLE FORMS -->
<term name="container-author" form="verb">de</term>
<term name="director" form="verb">coordonat de</term>
<term name="editor" form="verb">ediție de</term>
- <term name="editorial-director" form="verb">ediție de</term>
+ <term name="editorial-director" form="verb">coordonator</term>
<term name="illustrator" form="verb">ilustrații de</term>
<term name="interviewer" form="verb">interviu de</term>
<term name="recipient" form="verb">în</term>
<term name="reviewed-author" form="verb">de</term>
<term name="translator" form="verb">traducere de</term>
- <term name="editortranslator" form="verb">ediție &amp; traducere de</term>
+ <term name="editortranslator" form="verb">ediție și traducere de</term>
<!-- SHORT VERB ROLE FORMS -->
<term name="director" form="verb-short">dir.</term>
<term name="editor" form="verb-short">ed.</term>
- <term name="editorial-director" form="verb-short">ed.</term>
+ <term name="editorial-director" form="verb-short">coord.</term>
<term name="illustrator" form="verb-short">ilustr.</term>
<term name="translator" form="verb-short">trad.</term>
- <term name="editortranslator" form="verb-short">ed. &amp; trad. de</term>
+ <term name="editortranslator" form="verb-short">ed. și trad. de</term>
<!-- LONG MONTH FORMS -->
<term name="month-01">ianuarie</term>
diff --git a/locales/locales-sl-SI.xml b/locales/locales-sl-SI.xml
index acecd1a..a0957c8 100644
--- a/locales/locales-sl-SI.xml
+++ b/locales/locales-sl-SI.xml
@@ -38,7 +38,7 @@
<multiple>izdaje</multiple>
</term>
<term name="edition" form="short">izd.</term>
- <term name="et-al">in sod.</term>
+ <term name="et-al">idr.</term>
<term name="forthcoming">pred izidom</term>
<term name="from">od</term>
<term name="ibid">isto</term>
diff --git a/locales/locales-sv-SE.xml b/locales/locales-sv-SE.xml
index 3ac7815..3ac7815 100644..100755
--- a/locales/locales-sv-SE.xml
+++ b/locales/locales-sv-SE.xml
diff --git a/locales/locales-vi-VN.xml b/locales/locales-vi-VN.xml
index f55df51..f55df51 100644..100755
--- a/locales/locales-vi-VN.xml
+++ b/locales/locales-vi-VN.xml
diff --git a/locales/locales-zh-CN.xml b/locales/locales-zh-CN.xml
index f99a041..6f0e7f1 100644
--- a/locales/locales-zh-CN.xml
+++ b/locales/locales-zh-CN.xml
@@ -25,17 +25,17 @@
<date-part name="day" form="numeric-leading-zeros" prefix="/"/>
</date>
<terms>
- <term name="accessed">见於</term>
+ <term name="accessed">见于</term>
<term name="and">和</term>
<term name="and others">及其他</term>
<term name="anonymous">作者不详</term>
<term name="anonymous" form="short">无名氏</term>
- <term name="at">於</term>
- <term name="available at">载於</term>
+ <term name="at">于</term>
+ <term name="available at">载于</term>
<term name="by">著</term>
<term name="circa">介于</term>
<term name="circa" form="short">约</term>
- <term name="cited">见引於</term>
+ <term name="cited">见引于</term>
<term name="edition">版本</term>
<term name="edition" form="short">本</term>
<term name="et-al">等</term>
@@ -50,7 +50,7 @@
<term name="no date">日期不详</term>
<term name="no date" form="short">不详</term>
<term name="online">在线</term>
- <term name="presented at">发表於</term>
+ <term name="presented at">发表于</term>
<term name="reference">参考</term>
<term name="reference" form="short">参</term>
<term name="retrieved">取读于</term>
diff --git a/pandoc-citeproc.cabal b/pandoc-citeproc.cabal
index 3642e4e..f8cf597 100644
--- a/pandoc-citeproc.cabal
+++ b/pandoc-citeproc.cabal
@@ -1,5 +1,5 @@
name: pandoc-citeproc
-version: 0.16.2
+version: 0.16.3
cabal-version: 1.12
synopsis: Supports using pandoc with citeproc
@@ -100,20 +100,31 @@ library
Text.CSL.Compat.Pandoc
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind
ghc-prof-options: -fprof-auto-exported
- build-depends: containers, directory, mtl,
+ build-depends: base >= 4 && < 5,
+ syb,
+ parsec,
+ old-locale,
+ time,
+ containers,
+ directory,
+ mtl,
bytestring, filepath,
- network < 3.1,
+ network < 3.2,
pandoc-types >= 1.17.3 && < 1.18,
- pandoc >= 1.16 && < 2.8,
+ pandoc >= 1.16 && < 2.9,
tagsoup,
aeson >= 0.7 && < 1.5,
text,
vector,
- xml-conduit >= 1.2 && < 1.9,
+ xml-conduit >= 1.2 && < 1.10,
unordered-containers >= 0.2 && < 0.3,
data-default,
setenv >= 0.1 && < 0.2,
- split, yaml >= 0.11
+ split,
+ yaml >= 0.11,
+ HsYAML >= 0.2 && < 0.3,
+ HsYAML-aeson >= 0.2 && < 0.3
+
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
@@ -142,19 +153,15 @@ library
else
build-depends: rfc5051
- if impl(ghc >= 6.10)
- build-depends: base >= 4, syb, parsec, old-locale, time
- else
- build-depends: base >= 3 && < 4
-
executable pandoc-citeproc
main-is: pandoc-citeproc.hs
hs-source-dirs: .
ghc-options: -funbox-strict-fields -Wall
ghc-prof-options: -fprof-auto-exported -rtsopts
- build-depends: base >= 4, pandoc-citeproc,
+ build-depends: base >= 4 && < 5,
+ pandoc-citeproc,
pandoc-types >= 1.17.3 && < 1.18,
- pandoc >= 1.16 && < 2.8,
+ pandoc >= 1.16 && < 2.9,
aeson,
aeson-pretty >= 0.8,
yaml >= 0.11,
@@ -188,12 +195,21 @@ executable test-citeproc
Buildable: True
else
Buildable: False
- build-depends: base >= 4, aeson, directory, text, mtl,
+ build-depends: base >= 4 && < 5,
+ pandoc-citeproc,
+ aeson,
+ directory,
+ text,
+ mtl,
pandoc-types >= 1.17.3 && < 1.18,
- pandoc >= 1.16 && < 2.8,
- filepath, containers,
- bytestring, pandoc-citeproc, process, temporary >= 1.1,
- yaml >= 0.11, containers >= 0.4, vector >= 0.10
+ pandoc >= 1.16 && < 2.9,
+ filepath,
+ bytestring,
+ process,
+ temporary >= 1.1,
+ yaml >= 0.11,
+ containers >= 0.4,
+ vector >= 0.10
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
@@ -211,10 +227,19 @@ test-suite test-pandoc-citeproc
Main-Is: test-pandoc-citeproc.hs
Other-Modules: JSON
Hs-Source-Dirs: tests, compat
- build-depends: base >= 4, aeson, directory, text,
- pandoc-types >= 1.17.3 && < 1.18, mtl,
- pandoc >= 1.16 && < 2.8, filepath, containers,
- bytestring, pandoc-citeproc, process, temporary >= 1.1,
+ build-depends: base >= 4 && < 5,
+ aeson,
+ directory,
+ text,
+ pandoc-types >= 1.17.3 && < 1.18,
+ mtl,
+ pandoc >= 1.16 && < 2.9,
+ filepath,
+ containers,
+ bytestring,
+ pandoc-citeproc,
+ process,
+ temporary >= 1.1,
yaml >= 0.11
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind -threaded
if impl(ghc < 8.0)
diff --git a/src/Text/CSL/Input/Bibtex.hs b/src/Text/CSL/Input/Bibtex.hs
index 343d0b8..6807dd5 100644
--- a/src/Text/CSL/Input/Bibtex.hs
+++ b/src/Text/CSL/Input/Bibtex.hs
@@ -109,7 +109,7 @@ getLangFromEnv = do
-- | Parse a BibTeX or BibLaTeX file into a list of 'Reference's.
-- The first parameter is a predicate to filter identifiers.
-- If the second parameter is true, the file will be treated as
--- BibTeX; otherwse as BibLaTeX. If the third parameter is
+-- BibTeX; otherwise as BibLaTeX. If the third parameter is
-- true, an "untitlecase" transformation will be performed.
readBibtex :: (String -> Bool) -> Bool -> Bool -> FilePath -> IO [Reference]
readBibtex idpred isBibtex caseTransform f = do
@@ -1269,6 +1269,7 @@ itemToReference lang locale bibtex caseTransform = bib $ do
"booklet" -> (Pamphlet,mempty)
"bookinbook" -> (Chapter,mempty)
"collection" -> (Book,mempty)
+ "dataset" -> (Dataset,mempty)
"electronic" -> (Webpage,mempty)
"inbook" -> (Chapter,mempty)
"incollection" -> (Chapter,mempty)
@@ -1295,6 +1296,7 @@ itemToReference lang locale bibtex caseTransform = bib $ do
"proceedings" -> (Book,mempty)
"reference" -> (Book,mempty)
"report" -> (Report,mempty)
+ "software" -> (Book,mempty) -- no "software" type in CSL
"suppbook" -> (Chapter,mempty)
"suppcollection" -> (Chapter,mempty)
"suppperiodical"
@@ -1318,7 +1320,6 @@ itemToReference lang locale bibtex caseTransform = bib $ do
"music" -> (Song,mempty) -- for musical *recordings*
"performance" -> (Speech,mempty)
"review" -> (Review,mempty) -- or "review-book" ?
- "software" -> (Book,mempty) -- for lack of any better match
"standard" -> (Legislation,mempty)
"video" -> (MotionPicture,mempty)
-- biblatex-apa:
diff --git a/src/Text/CSL/Input/Bibutils.hs b/src/Text/CSL/Input/Bibutils.hs
index bfd3878..7e7e431 100644
--- a/src/Text/CSL/Input/Bibutils.hs
+++ b/src/Text/CSL/Input/Bibutils.hs
@@ -24,11 +24,13 @@ module Text.CSL.Input.Bibutils
import Prelude
import qualified Control.Exception as E
import Data.Aeson
+import Data.Aeson.Types (parseMaybe)
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString as BS
import qualified Data.HashMap.Strict as HM
import qualified Data.Text as T
-import qualified Data.Yaml as Yaml
+import qualified Data.YAML.Aeson as YA
+import qualified Data.YAML as Y
import qualified Data.Vector as V
import Data.Char
import qualified Data.Map as M
@@ -182,23 +184,25 @@ readYamlBib idpred s =
selectEntries :: (String -> Bool) -> BS.ByteString -> BS.ByteString
selectEntries idpred bs =
- case Yaml.decodeEither' bs of
- Right (Array vs) -> Yaml.encode (filterObjects $ V.toList vs)
+ case YA.decode1Strict bs of
+ Right (Array vs) -> YA.encode1Strict (filterObjects $ V.toList vs)
Right (Object o) ->
case HM.lookup (T.pack "references") o of
Just (Array vs) ->
- Yaml.encode (HM.insert (T.pack "references")
+ YA.encode1Strict (HM.insert (T.pack "references")
(filterObjects $ V.toList vs) mempty)
_ -> BS.empty
Right _ -> BS.empty
- Left e -> E.throw $ ErrorParsingReferences
- (Yaml.prettyPrintParseException e)
+ Left (pos,e) -> E.throw $ ErrorParsingReferences
+ $ e ++ " (line " ++ show (Y.posLine pos) ++
+ " column " ++ show (Y.posColumn pos) ++
+ ")"
where filterObjects = filter
(\x -> case x of
Object o ->
case HM.lookup (T.pack "id") o of
Just i ->
- case Yaml.parseMaybe parseString i of
+ case parseMaybe parseString i of
Just s -> idpred s
Nothing -> False
_ -> False
diff --git a/src/Text/CSL/Pandoc.hs b/src/Text/CSL/Pandoc.hs
index 8133b53..27dce55 100644..100755
--- a/src/Text/CSL/Pandoc.hs
+++ b/src/Text/CSL/Pandoc.hs
@@ -41,7 +41,7 @@ import Text.CSL.Util (findFile, lastInline,
import Text.HTML.TagSoup.Entity (lookupEntity)
import Text.Pandoc
import Text.Pandoc.Builder (deleteMeta, setMeta)
-import Text.Pandoc.Shared (stringify)
+import Text.Pandoc.Shared (stringify, ordNub)
import Text.Pandoc.Walk
import Text.Parsec hiding (State, (<|>))
@@ -68,9 +68,12 @@ processCites style refs (Pandoc m1 b1) =
Nothing -> m3
Just x -> setMeta "nocite" x m3
notemap = mkNoteMap (Pandoc m3 bs)
+ hanging = maybe False (== "true")
+ (biblio style >>=
+ lookup "hanging-indent" . bibOptions)
in Pandoc m $ walk (addFirstNoteNumber notemap)
$ walk (concatMap removeNocaseSpans)
- $ insertRefs m biblioList bs
+ $ insertRefs hanging m biblioList bs
addFirstNoteNumber :: M.Map String Int -> Inline -> Inline
addFirstNoteNumber notemap
@@ -95,9 +98,9 @@ mkNoteMap doc =
-- if document contains a Div with id="refs", insert
-- references as its contents. Otherwise, insert references
-- at the end of the document in a Div with id="refs"
-insertRefs :: Meta -> [Block] -> [Block] -> [Block]
-insertRefs _ [] bs = bs
-insertRefs meta refs bs =
+insertRefs :: Bool -> Meta -> [Block] -> [Block] -> [Block]
+insertRefs _ _ [] bs = bs
+insertRefs hanging meta refs bs =
if isRefRemove meta
then bs
else case runState (walkM go bs) False of
@@ -107,20 +110,23 @@ insertRefs meta refs bs =
Header lev (id',classes,kvs) ys : xs ->
reverse xs ++
[Header lev (id',addUnNumbered classes,kvs) ys,
- Div ("refs",["references"],[]) refs]
+ Div ("refs",refclasses,[]) refs]
_ -> bs ++ refHeader ++
- [Div ("refs",["references"],[]) refs]
- where go :: Block -> State Bool Block
- go (Div attr@("refs",_,_) xs) = do
- put True
- -- refHeader isn't used if you have an explicit references div
- return $ Div attr (xs ++ refs)
- go x = return x
- addUnNumbered cs = "unnumbered" : [c | c <- cs, c /= "unnumbered"]
- refHeader = case refTitle meta of
- Just ils ->
- [Header 1 ("bibliography", ["unnumbered"], []) ils]
- _ -> []
+ [Div ("refs",refclasses,[]) refs]
+ where
+ refclasses = "references" : if hanging then ["hanging-indent"] else []
+ go :: Block -> State Bool Block
+ go (Div ("refs",cs,kvs) xs) = do
+ put True
+ -- refHeader isn't used if you have an explicit references div
+ let cs' = ordNub $ cs ++ refclasses
+ return $ Div ("refs",cs',kvs) (xs ++ refs)
+ go x = return x
+ addUnNumbered cs = "unnumbered" : [c | c <- cs, c /= "unnumbered"]
+ refHeader = case refTitle meta of
+ Just ils ->
+ [Header 1 ("bibliography", ["unnumbered"], []) ils]
+ _ -> []
refTitle :: Meta -> Maybe [Inline]
refTitle meta =
diff --git a/stack.yaml b/stack.yaml
index d2211f4..99e02fc 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -9,12 +9,14 @@ flags:
packages:
- '.'
extra-deps:
-- pandoc-2.7.2
-- texmath-0.11.2.2
-- skylighting-core-0.7.7
-- skylighting-0.7.7
-- ipynb-0.1
-- cmark-gfm-0.2.0
+- pandoc-types-1.17.6.1
+- HsYAML-0.2.0.0
+- HsYAML-aeson-0.2.0.0
+- doctemplates-0.6.1
+- doclayout-0.1
+- git: https://github.com/jgm/pandoc.git
+ commit: b64410ff9ce64d6a2c7e09b43694b6f4245f9129
+
ghc-options:
"$locals": -fhide-source-paths
-resolver: lts-13.9
+resolver: lts-14.6
diff --git a/tests/chicago-author-date.expected.native b/tests/chicago-author-date.expected.native
index 1b041ee..1467174 100644
--- a/tests/chicago-author-date.expected.native
+++ b/tests/chicago-author-date.expected.native
@@ -15,7 +15,7 @@ Pandoc (Meta {unMeta = fromList [("bibliography",MetaInlines [Str "tests/biblio.
,Para [Str "Now",Space,Str "some",Space,Str "modifiers.",Note [Para [Str "Like",Space,Str "a",Space,Str "citation",Space,Str "without",Space,Str "author:",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 0, citationHash = 19}] [Str "(",Link ("",[],[]) [Str "2005"] ("#ref-item1",""),Str ")"],Str ",",Space,Str "and",Space,Str "now",Space,Str "Doe",Space,Str "with",Space,Str "a",Space,Str "locator",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [Space,Str "p.",Space,Str "44"], citationMode = SuppressAuthor, citationNoteNum = 0, citationHash = 20}] [Str "(",Link ("",[],[]) [Str "2006"] ("#ref-item2",""),Str ",",Space,Str "44)"],Str "."]]]
,Para [Str "With",Space,Str "some",Space,Str "markup",Space,Cite [Citation {citationId = "item1", citationPrefix = [Emph [Str "see"]], citationSuffix = [Space,Str "p.",Space,Strong [Str "32"]], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 21}] [Str "(",Emph [Str "see"],Space,Str "Doe",Space,Link ("",[],[]) [Str "2005"] ("#ref-item1",""),Str ",",Space,Str "32)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Doe,",Space,Str "John.",Space,Str "2005.",Space,Emph [Str "First",Space,Str "Book"],Str ".",Space,Str "Cambridge:",Space,Str "Cambridge",Space,Str "University",Space,Str "Press."]]
,Div ("ref-item2",[],[])
diff --git a/tests/issue118.expected.native b/tests/issue118.expected.native
index 915e8a1..3785724 100644
--- a/tests/issue118.expected.native
+++ b/tests/issue118.expected.native
@@ -1,3 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("director",MetaMap (fromList [("family",MetaInlines [Str "Hitchcock"]),("given",MetaInlines [Str "Alfred"])])),("id",MetaInlines [Str "nbn"]),("issued",MetaMap (fromList [("year",MetaString "1959")])),("language",MetaInlines [Str "en-US"]),("publisher",MetaInlines [Str "Metro-Goldwyn-Mayer"]),("publisher-place",MetaInlines [Str "USA"]),("title",MetaInlines [Str "North",Space,Str "by",Space,Str "Northwest"]),("type",MetaInlines [Str "motion_picture"])])])]})
[Para [Cite [Citation {citationId = "nbn", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Hitchcock",Space,Str "1959)"],Space,Str "is",Space,Str "a",Space,Str "spy",Space,Str "thriller",Space,Str "film."]
-,Div ("refs",["references"],[]) [Div ("ref-nbn",[],[]) [Para [Str "Hitchcock,",Space,Str "Alfred,",Space,Str "dir.",Space,Str "1959.",Space,Emph [Str "North",Space,Str "by",Space,Str "Northwest"],Str ".",Space,Str "USA:",Space,Str "Metro-Goldwyn-Mayer."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-nbn",[],[])
+ [Para [Str "Hitchcock,",Space,Str "Alfred,",Space,Str "dir.",Space,Str "1959.",Space,Emph [Str "North",Space,Str "by",Space,Str "Northwest"],Str ".",Space,Str "USA:",Space,Str "Metro-Goldwyn-Mayer."]]]]
diff --git a/tests/issue119.expected.native b/tests/issue119.expected.native
index ba4a2b0..d0e497f 100644
--- a/tests/issue119.expected.native
+++ b/tests/issue119.expected.native
@@ -1,7 +1,7 @@
Pandoc (Meta {unMeta = fromList [("bibliography",MetaInlines [Str "tests/biblatex-examples.bib"]),("csl",MetaInlines [Str "tests/apa.csl"])]})
[Para [Cite [Citation {citationId = "averroes/bland", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Averroes",Space,Str "(1982)"],Str ";",Space,Cite [Citation {citationId = "averroes/hannes", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "Averroes",Space,Str "(1892)"],Str ";",Space,Cite [Citation {citationId = "averroes/hercz", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 3}] [Str "Averroes",Space,Str "(1869)"]]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-averroes/hercz",[],[])
[Para [Str "Averroes.",Space,Str "(1869).",Space,Emph [Str "Drei",Space,Str "Abhandlungen",Space,Str "\252ber",Space,Str "die",Space,Str "Conjunction",Space,Str "des",Space,Str "separaten",Space,Str "Intellects",Space,Str "mit",Space,Str "dem",Space,Str "Menschen:",Space,Str "Von",Space,Str "Averroes",Space,Str "(Vater",Space,Str "und",Space,Str "Sohn),",Space,Str "aus",Space,Str "dem",Space,Str "Arabischen",Space,Str "\252bersetzt",Space,Str "von",Space,Str "Samuel",Space,Str "Ibn",Space,Str "Tibbon"],Str ".",Space,Str "(J.",Space,Str "Hercz,",Space,Str "Trans.,",Space,Str "J.",Space,Str "Hercz,",Space,Str "Ed.).",Space,Str "Berlin:",Space,Str "S.\160Hermann."]]
,Div ("ref-averroes/hannes",[],[])
diff --git a/tests/issue13.expected.native b/tests/issue13.expected.native
index 3730ff5..b51103c 100644
--- a/tests/issue13.expected.native
+++ b/tests/issue13.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-note-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-newspaper"])])])]})
[Para [Str "Foo",Str ".",Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Author,",Space,Str "\8220Title.\8221"]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Author,",Space,Str "Ann.",Space,Str "\8220Title.\8221",Space,Emph [Str "Journal"],Str ",",Space,Str "2011."]]]]
diff --git a/tests/issue14.expected.native b/tests/issue14.expected.native
index 4b4b095..a01884c 100644
--- a/tests/issue14.expected.native
+++ b/tests/issue14.expected.native
@@ -1,4 +1,10 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "chicago-author-date.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Pelikan"]),("given",MetaInlines [Str "Jaroslav"])])),("container-title",MetaInlines [Str "The",Space,Str "Christian",Space,Str "tradition:",Space,Str "A",Space,Str "history",Space,Str "of",Space,Str "the",Space,Str "development",Space,Str "of",Space,Str "doctrine"]),("id",MetaInlines [Str "CTv1c2"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "1971")])]),("language",MetaInlines [Str "en-US"]),("page",MetaInlines [Str "34-56"]),("publisher",MetaInlines [Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Chicago"]),("title",MetaInlines [Str "Chapter",Space,Str "two"]),("type",MetaInlines [Str "chapter"]),("volume",MetaString "1"),("volume-title",MetaInlines [Str "The",Space,Str "emergence",Space,Str "of",Space,Str "the",Space,Str "Catholic",Space,Str "tradition",Space,Str "(100\8211\&600)"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Pelikan"]),("given",MetaInlines [Str "Jaroslav"])])),("container-title",MetaInlines [Str "The",Space,Str "Christian",Space,Str "tradition:",Space,Str "A",Space,Str "history",Space,Str "of",Space,Str "the",Space,Str "development",Space,Str "of",Space,Str "doctrine"]),("id",MetaInlines [Str "CTv1"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "1971")])]),("language",MetaInlines [Str "en-US"]),("publisher",MetaInlines [Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Chicago"]),("title",MetaInlines [Str "The",Space,Str "emergence",Space,Str "of",Space,Str "the",Space,Str "Catholic",Space,Str "tradition",Space,Str "(100\8211\&600)"]),("type",MetaInlines [Str "book"]),("volume",MetaString "1")]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Pelikan"]),("given",MetaInlines [Str "Jaroslav"])])),("id",MetaInlines [Str "CT"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "1971")])]),("language",MetaInlines [Str "en-US"]),("publisher",MetaInlines [Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Chicago"]),("title",MetaInlines [Str "The",Space,Str "Christian",Space,Str "tradition:",Space,Str "A",Space,Str "history",Space,Str "of",Space,Str "the",Space,Str "development",Space,Str "of",Space,Str "doctrine"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "Foo",Space,Cite [Citation {citationId = "CT", citationPrefix = [], citationSuffix = [Str ",",Space,Str "1:12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Pelikan",Space,Str "1971b,",Space,Str "1:12)"],Str ".",Space,Str "Bar",Space,Cite [Citation {citationId = "CTv1", citationPrefix = [], citationSuffix = [Str ",",Space,Str "12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Pelikan",Space,Str "1971c,",Space,Str "1:12)"],Str ".",Space,Str "Baz",Space,Cite [Citation {citationId = "CTv1c2", citationPrefix = [], citationSuffix = [Str ",",Space,Str "12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3}] [Str "(Pelikan",Space,Str "1971a,",Space,Str "12)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[]) [Div ("ref-CTv1c2",[],[]) [Para [Str "Pelikan,",Space,Str "Jaroslav.",Space,Str "1971a.",Space,Str "\8220Chapter",Space,Str "Two.\8221",Space,Str "In",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ",",Space,Str "1:34\8211\&56.",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]],Div ("ref-CT",[],[]) [Para [Str "\8212\8212\8212.",Space,Str "1971b.",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ".",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]],Div ("ref-CTv1",[],[]) [Para [Str "\8212\8212\8212.",Space,Str "1971c.",Space,Emph [Str "The",Space,Str "Emergence",Space,Str "of",Space,Str "the",Space,Str "Catholic",Space,Str "Tradition",Space,Str "(100\8211\&600)"],Str ".",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ".",Space,Str "Vol.",Space,Str "1.",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-CTv1c2",[],[])
+ [Para [Str "Pelikan,",Space,Str "Jaroslav.",Space,Str "1971a.",Space,Str "\8220Chapter",Space,Str "Two.\8221",Space,Str "In",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ",",Space,Str "1:34\8211\&56.",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]]
+ ,Div ("ref-CT",[],[])
+ [Para [Str "\8212\8212\8212.",Space,Str "1971b.",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ".",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]]
+ ,Div ("ref-CTv1",[],[])
+ [Para [Str "\8212\8212\8212.",Space,Str "1971c.",Space,Emph [Str "The",Space,Str "Emergence",Space,Str "of",Space,Str "the",Space,Str "Catholic",Space,Str "Tradition",Space,Str "(100\8211\&600)"],Str ".",Space,Emph [Str "The",Space,Str "Christian",Space,Str "Tradition:",Space,Str "A",Space,Str "History",Space,Str "of",Space,Str "the",Space,Str "Development",Space,Str "of",Space,Str "Doctrine"],Str ".",Space,Str "Vol.",Space,Str "1.",Space,Str "Chicago:",Space,Str "University",Space,Str "of",Space,Str "Chicago",Space,Str "Press."]]]]
diff --git a/tests/issue152.expected.native b/tests/issue152.expected.native
index 55eb4ac..2158189 100644
--- a/tests/issue152.expected.native
+++ b/tests/issue152.expected.native
@@ -2,7 +2,7 @@ Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/apa.csl"]),("ref
[Header 1 ("test",[],[]) [Str "Test"]
,Para [Str "I",Space,Str "have",Space,Str "two",Space,Str "citations",Space,Cite [Citation {citationId = "Feminism2013gf", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "Feminism2011ces", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(",Str "\8220Communities,\8221",Space,Str "2011;",Space,Str "\8220Geek",Space,Str "Feminism,\8221",Space,Str "2013)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-Feminism2011ces",[],[])
[Para [Str "Communities.",Space,Str "(2011,",Space,Str "August",Space,Str "14).",Space,Str "In",Space,Emph [Str "Geek",Space,Str "Feminism"],Str ".",Space,Str "Retrieved",Space,Str "from",Space,Link ("",[],[]) [Str "http://geekfeminism.wikia.com/wiki/Category:Communities"] ("http://geekfeminism.wikia.com/wiki/Category:Communities","")]]
,Div ("ref-Feminism2013gf",[],[])
diff --git a/tests/issue175.expected.native b/tests/issue175.expected.native
index c3461a9..e76d3f2 100644
--- a/tests/issue175.expected.native
+++ b/tests/issue175.expected.native
@@ -4,6 +4,6 @@ Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("au
,Header 2 ("expected",[],[]) [Str "Expected"]
,BlockQuote
[Para [Str "Doe,",Space,Str "Jane.",Space,Str "2011.",Space,Str "\8220A",Space,Str "Title.\8221",Space,Emph [Str "A",Space,Str "Magazine"],Str ",",Space,Str "January\8211February."]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Doe,",Space,Str "Jane.",Space,Str "2011.",Space,Str "\8220A",Space,Str "Title.\8221",Space,Emph [Str "A",Space,Str "Magazine"],Str ",",Space,Str "January\8211February",Space,Str "2011."]]]]
diff --git a/tests/issue197.expected.native b/tests/issue197.expected.native
index 8f44619..e059450 100644
--- a/tests/issue197.expected.native
+++ b/tests/issue197.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("nocite",MetaInlines [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@test"]]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Abelard"]),("given",MetaInlines [Str "Peter"])])]),("id",MetaInlines [Str "test"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1989"]])])),("publisher",MetaInlines [Str "Clarendon",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Oxford"]),("title",MetaInlines [Str "Test"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Str ".",Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Peter",Space,Str "Abelard,",Space,Str "ed.,",Space,Emph [Str "Test"],Space,Str "(Oxford:",Space,Str "Clarendon",Space,Str "Press,",Space,Str "1989)."]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-test",[],[])
[Para [Str "Abelard,",Space,Str "Peter,",Space,Str "ed.",Space,Emph [Str "Test"],Str ".",Space,Str "Oxford:",Space,Str "Clarendon",Space,Str "Press,",Space,Str "1989."]]]]
diff --git a/tests/issue213.expected.native b/tests/issue213.expected.native
index f4104cf..a6df509 100644
--- a/tests/issue213.expected.native
+++ b/tests/issue213.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/harvard-university-of-kent.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])])]),("collection-title",MetaInlines [Str "The",Space,Str "collection",Space,Str "title"]),("dimensions",MetaInlines [Str "789",Space,Str "pp."]),("id",MetaInlines [Str "doe1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1999"])])]),("publisher",MetaInlines [Str "The",Space,Str "publisher"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "Foo",Space,Cite [Citation {citationId = "doe1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Doe",Space,Str "1999)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-doe1",[],[])
[Para [Str "Doe,",Space,Str "A.",Space,Str "(1999).",Space,Emph [Str "Title"],Str ".",Space,Str "The",Space,Str "collection",Space,Str "title.",Space,Str "The",Space,Str "publisher.",Space,Str "789",Space,Str "pp."]]]]
diff --git a/tests/issue25.expected.native b/tests/issue25.expected.native
index 6644508..7ad3b51 100644
--- a/tests/issue25.expected.native
+++ b/tests/issue25.expected.native
@@ -1,4 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "bazbaz",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])])])]})
[Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Author",Space,Str "1998)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[]) [Div ("ref-item1",[],[]) [Para [Str "Author,",Space,Str "Al.",Space,Str "1998.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "Bazbaz",Space,Str "Foo.\8221"]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-item1",[],[])
+ [Para [Str "Author,",Space,Str "Al.",Space,Str "1998.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "Bazbaz",Space,Str "Foo.\8221"]]]]
diff --git a/tests/issue250.expected.native b/tests/issue250.expected.native
index c747dd1..d408900 100644
--- a/tests/issue250.expected.native
+++ b/tests/issue250.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("link-citations",MetaBool True),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("title",MetaInlines [Str "Title"])])])]})
[Para [Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Doe,",Space,Link ("",[],[]) [Str "n.d."] ("#ref-doe",""),Str ")"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-doe",[],[])
[Para [Str "Doe.",Space,Str "n.d.",Space,Str "\8220Title.\8221"]]]]
diff --git a/tests/issue292.expected.native b/tests/issue292.expected.native
index 19d02ff..6dd46f6 100644
--- a/tests/issue292.expected.native
+++ b/tests/issue292.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/sage-harvard.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Doe"])])),("id",MetaInlines [Str "doe"]),("issued",MetaMap (fromList [("year",MetaString "2007")])),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Zoe"])])),("id",MetaInlines [Str "zoe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2009")])]),("type",MetaInlines [Str "article"])]),MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Roe"])])),("id",MetaInlines [Str "roe"]),("issued",MetaList [MetaMap (fromList [("year",MetaString "2007")])]),("type",MetaInlines [Str "article"])])])]})
[Para [Cite [Citation {citationId = "zoe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "roe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "doe", citationPrefix = [Str "see",Space,Str "for",Space,Str "comparison"], citationSuffix = [Str ",",Space,Str "p.\160\&3"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3}] [Str "(Roe,",Space,Str "2007;",Space,Str "Zoe,",Space,Str "2009;",Space,Str "see",Space,Str "for",Space,Str "comparison",Space,Str "Doe,",Space,Str "2007:",Space,Str "3)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-doe",[],[])
[Para [Str "Doe",Space,Str "(2007)."]]
,Div ("ref-roe",[],[])
diff --git a/tests/issue301.expected.native b/tests/issue301.expected.native
index 571a510..12b123a 100644
--- a/tests/issue301.expected.native
+++ b/tests/issue301.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "test"]),("title",MetaInlines [Str "Essays",Space,Str "presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(On",Space,Str "Art)"])]),MetaMap (fromList [("id",MetaInlines [Str "test2"]),("title",MetaInlines [Emph [Str "Test:"],Space,Str "An",Space,Str "experiment:",Space,Str "An",Space,Str "abridgement"])])])]})
[Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "(",Str "\8220Essays",Space,Str "Presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(on",Space,Str "Art),\8221",Space,Str "n.d.)"],Str ";",Space,Cite [Citation {citationId = "test2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "(",Str "\8220",Emph [Str "Test:"],Space,Str "An",Space,Str "Experiment:",Space,Str "An",Space,Str "Abridgement,\8221",Space,Str "n.d.)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-test",[],[])
[Para [Str "\8220",Str "Essays",Space,Str "Presented",Space,Str "to",Space,Str "N.R.",Space,Str "Ker",Space,Str "(on",Space,Str "Art).\8221",Space,Str "n.d."]]
,Div ("ref-test2",[],[])
diff --git a/tests/issue307.expected.native b/tests/issue307.expected.native
index cb5c556..d1e4d19 100644
--- a/tests/issue307.expected.native
+++ b/tests/issue307.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("lang",MetaInlines [Str "fr-FR"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Bazin"]),("given",MetaInlines [Str "Andr\233"])])]),("container-title",MetaInlines [Str "Cahiers",Space,Str "du",Space,Str "cin\233ma"]),("id",MetaInlines [Str "bazin_cybernetique_1954"]),("issue",MetaInlines [Str "36"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1954",MetaString "6"]])])),("page",MetaInlines [Str "22-27"]),("title",MetaInlines [Str "La",Space,Str "Cybern\233tique",Space,Str "d\8217Andr\233",Space,Str "Cayatte"]),("type",MetaInlines [Str "article-journal"])])])]})
[Para [Str "Bonjour",Cite [Citation {citationId = "bazin_cybernetique_1954", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Bazin",Space,Str "1954)"],Space,Str "!"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-bazin_cybernetique_1954",[],[])
[Para [Str "Bazin,",Space,Str "Andr\233.",Space,Str "1954.",Space,Str "\171\160La",Space,Str "Cybern\233tique",Space,Str "d\8217Andr\233",Space,Str "Cayatte\160\187.",Space,Emph [Str "Cahiers",Space,Str "du",Space,Str "cin\233ma"],Str ",",Space,Str "n\7506",Space,Str "36",Space,Str "(juin):",Space,Str "22\8209\&27."]]]]
diff --git a/tests/issue312.expected.native b/tests/issue312.expected.native
index f584235..a587e8e 100644
--- a/tests/issue312.expected.native
+++ b/tests/issue312.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/apa.csl"]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@*"]]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "Y"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1950"])])]),("title",MetaInlines [Str "Date:",Space,Str "Year"]),("title-short",MetaInlines [Str "Date"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "Y/Y"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1951"])]),MetaMap (fromList [("year",MetaInlines [Str "1952"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YM"]),("issued",MetaList [MetaMap (fromList [("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1953"])])]),("title",MetaInlines [Str "Date:",Space,Str "Year+month"]),("title-short",MetaInlines [Str "Date"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YM/YM"]),("issued",MetaList [MetaMap (fromList [("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1954"])]),MetaMap (fromList [("month",MetaInlines [Str "2"]),("year",MetaInlines [Str "1955"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+month"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YM/YM_same"]),("issued",MetaList [MetaMap (fromList [("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1956"])]),MetaMap (fromList [("month",MetaInlines [Str "2"]),("year",MetaInlines [Str "1956"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+month,",Space,Str "same",Space,Str "year"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YMD"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "15"]),("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1958"])])]),("title",MetaInlines [Str "Date:",Space,Str "Year+month+day"]),("title-short",MetaInlines [Str "Date"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YMD/YMD"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "15"]),("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1959"])]),MetaMap (fromList [("day",MetaInlines [Str "16"]),("month",MetaInlines [Str "2"]),("year",MetaInlines [Str "1960"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+month+day"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YMD/YMD_same"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "15"]),("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1961"])]),MetaMap (fromList [("day",MetaInlines [Str "16"]),("month",MetaInlines [Str "1"]),("year",MetaInlines [Str "1962"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+month+day,",Space,Str "same",Space,Str "month"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YS"]),("issued",MetaList [MetaMap (fromList [("season",MetaInlines [Str "3"]),("year",MetaInlines [Str "1963"])])]),("title",MetaInlines [Str "Date:",Space,Str "Year+season"]),("title-short",MetaInlines [Str "Date"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YS/YS"]),("issued",MetaList [MetaMap (fromList [("season",MetaInlines [Str "1"]),("year",MetaInlines [Str "1964"])]),MetaMap (fromList [("season",MetaInlines [Str "4"]),("year",MetaInlines [Str "1965"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+season"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "NN"])])]),("id",MetaInlines [Str "YS/YS_same"]),("issued",MetaList [MetaMap (fromList [("season",MetaInlines [Str "2"]),("year",MetaInlines [Str "1966"])]),MetaMap (fromList [("season",MetaInlines [Str "4"]),("year",MetaInlines [Str "1966"])])]),("title",MetaInlines [Str "Date",Space,Str "range:",Space,Str "Year+season,",Space,Str "same",Space,Str "year"]),("title-short",MetaInlines [Str "Date",Space,Str "range"]),("type",MetaInlines [Str "webpage"])])])]})
-[Div ("refs",["references"],[])
+[Div ("refs",["references","hanging-indent"],[])
[Div ("ref-Y",[],[])
[Para [Str "NN.",Space,Str "(1950).",Space,Str "Date:",Space,Str "Year."]]
,Div ("ref-Y/Y",[],[])
diff --git a/tests/issue320.expected.native b/tests/issue320.expected.native
index eb04cf7..96ace60 100644
--- a/tests/issue320.expected.native
+++ b/tests/issue320.expected.native
@@ -2,7 +2,7 @@ Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/apa.csl"]),("ref
[Para [Str "Foo",Space,Cite [Citation {citationId = "itemA1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "itemA2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "itemA3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3},Citation {citationId = "itemA4", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 4},Citation {citationId = "itemA5", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 5},Citation {citationId = "itemA6", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 6},Citation {citationId = "itemA7", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 7},Citation {citationId = "itemA8", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 8},Citation {citationId = "itemA9", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 9},Citation {citationId = "itemA10", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 10},Citation {citationId = "itemA11", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 11},Citation {citationId = "itemA12", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 12},Citation {citationId = "itemA13", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 13},Citation {citationId = "itemA14", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 14}] [Str "(Benjamin,",Space,Str "n.d.;",Space,Str "ben",Space,Str "Yaakov,",Space,Str "n.d.;",Space,Str "Brown,",Space,Str "n.d.;",Space,Str "Browning,",Space,Str "n.d.;",Space,Str "Girard,",Space,Str "n.d.;",Space,Str "Girard-Perregaux,",Space,Str "n.d.;",Space,Str "Ibn",Space,Str "Abdulaziz,",Space,Str "n.d.;",Space,Str "Ibn",Space,Str "Nidal,",Space,Str "n.d.;",Space,Str "Lo\769pez,",Space,Str "n.d.;",Space,Str "Lo\769pez",Space,Str "de",Space,Str "Molina,",Space,Str "n.d.;",Space,Str "Singh,",Space,Str "n.d.;",Space,Str "Singh",Space,Str "Siddhu,",Space,Str "n.d.;",Space,Str "Villafuerte,",Space,Str "n.d.;",Space,Str "Villa-Lobos,",Space,Str "n.d.)"],Str "."]
,Para [Str "Foo",Space,Cite [Citation {citationId = "itemB1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 15},Citation {citationId = "itemB2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 16},Citation {citationId = "itemB3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 17},Citation {citationId = "itemB4", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 18},Citation {citationId = "itemB5", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 19},Citation {citationId = "itemB6", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 20},Citation {citationId = "itemB7", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 21},Citation {citationId = "itemB8", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 22}] [Str "(Macalister,",Space,Str "n.d.;",Space,Str "MacAlister,",Space,Str "n.d.;",Space,Str "Macauley,",Space,Str "n.d.;",Space,Str "Macmillan,",Space,Str "n.d.;",Space,Str "Madison,",Space,Str "n.d.;",Space,Str "McAllister,",Space,Str "n.d.;",Space,Str "McAuley,",Space,Str "n.d.;",Space,Str "McMillan,",Space,Str "n.d.)"],Str "."]
,Para [Str "Foo",Space,Cite [Citation {citationId = "itemC1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 23},Citation {citationId = "itemC2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 24},Citation {citationId = "itemC3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 25},Citation {citationId = "itemC4", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 26},Citation {citationId = "itemC5", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 27},Citation {citationId = "itemC6", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 28}] [Str "(Sainte-Beuve,",Space,Str "n.d.;",Space,Str "Saint-Gaudens,",Space,Str "n.d.;",Space,Str "Saint-Sa\235ns,",Space,Str "n.d.;",Space,Str "San",Space,Str "Martin,",Space,Str "n.d.;",Space,Str "St.\160Denis,",Space,Str "n.d.;",Space,Str "St.\160Laurent,",Space,Str "n.d.)"],Str "."]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-itemA1",[],[])
[Para [Str "Benjamin,",Space,Str "A.",Space,Str "S.",Space,Str "(n.d.)."]]
,Div ("ref-itemA2",[],[])
diff --git a/tests/issue320a.expected.native b/tests/issue320a.expected.native
index bd5a4a1..84f23e3 100644
--- a/tests/issue320a.expected.native
+++ b/tests/issue320a.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "\702Udhr\299"]),("given",MetaInlines [Str "Jam\299l"]),("non-dropping-particle",MetaInlines [Str "al-"]),("note",MetaInlines [Str "ayn"])])]),("id",MetaInlines [Str "item1"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "\703Udhr\299"]),("given",MetaInlines [Str "Jam\299l"]),("non-dropping-particle",MetaInlines [Str "al-"]),("note",MetaInlines [Str "hamza"])])]),("id",MetaInlines [Str "item2"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "'Udhr\299"]),("given",MetaInlines [Str "Jam\299l"]),("non-dropping-particle",MetaInlines [Str "al-"]),("note",MetaInlines [Str "straight",Space,Str "apostrophe"])])]),("id",MetaInlines [Str "item3"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "\8216Udhr\299"]),("given",MetaInlines [Str "Jam\299l"]),("non-dropping-particle",MetaInlines [Str "al-"]),("note",MetaInlines [Str "inverted",Space,Str "apostrophe",Space,Str "=",Space,Str "opening",Space,Str "single",Space,Str "curly",Space,Str "quote",Space,Str "(for",Space,Str "ayn)"])])]),("id",MetaInlines [Str "item4"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "\8217Udhr\299"]),("given",MetaInlines [Str "Jam\299l"]),("non-dropping-particle",MetaInlines [Str "al-"]),("note",MetaInlines [Str "apostrophe",Space,Str "=",Space,Str "closing",Space,Str "single",Space,Str "curly",Space,Str "quote",Space,Str "(for",Space,Str "hamza)"])])]),("id",MetaInlines [Str "item5"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Uch"]),("given",MetaInlines [Str "Ann"])])]),("id",MetaInlines [Str "item6"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Uebel"]),("given",MetaInlines [Str "Joe"])])]),("id",MetaInlines [Str "item7"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Zzz"]),("given",MetaInlines [Str "Zoe"])])]),("id",MetaInlines [Str "item8"])])])]})
[Para [Str "Foo",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "item3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3},Citation {citationId = "item4", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 4},Citation {citationId = "item5", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 5},Citation {citationId = "item6", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 6},Citation {citationId = "item7", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 7},Citation {citationId = "item8", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 8}] [Str "(al-\702Udhr\299,",Space,Str "n.d.;",Space,Str "al-\703Udhr\299,",Space,Str "n.d.;",Space,Str "al-'Udhr\299,",Space,Str "n.d.;",Space,Str "al-\8216Udhr\299,",Space,Str "n.d.;",Space,Str "al-\8217Udhr\299,",Space,Str "n.d.;",Space,Str "Uch,",Space,Str "n.d.;",Space,Str "Uebel,",Space,Str "n.d.;",Space,Str "Zzz,",Space,Str "n.d.)"],Str "."]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item6",[],[])
[Para [Str "Uch,",Space,Str "Ann.",Space,Str "n.d."]]
,Div ("ref-item1",[],[])
diff --git a/tests/issue325.expected.native b/tests/issue325.expected.native
index 316011e..de83118 100644
--- a/tests/issue325.expected.native
+++ b/tests/issue325.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item1"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Smith"]),("given",MetaInlines [Str "John"])])]),("id",MetaInlines [Str "item2"]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Smith,",Space,Str "n.d.a,",Space,Str "n.d.b)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Smith,",Space,Str "John.",Space,Str "n.d.a."]]
,Div ("ref-item2",[],[])
diff --git a/tests/issue338.expected.native b/tests/issue338.expected.native
index e47e82d..440efca 100644
--- a/tests/issue338.expected.native
+++ b/tests/issue338.expected.native
@@ -1,4 +1,4 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/din-1505-2.csl"]),("lang",MetaInlines [Str "de"]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 0}] [Str "@*"]]),("pagetitle",MetaInlines [Str "Citation"]),("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "978-3-642-32078-1"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Wolfinger"]),("given",MetaInlines [Str "Christine"])])]),("edition",MetaInlines [Str "11.,",Space,Str "vollst.",Space,Str "\252berarb.",Space,Str "Aufl."]),("id",MetaInlines [Str "item-1"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2013"])])]),("keyword",MetaInlines [Str "UNIX;",Space,Str "LINUX"]),("number-of-pages",MetaInlines [Str "XVIII,",Space,Str "529",Space,Str "S.",Space,Str ":",Space,Str "Ill.,",Space,Str "graph.",Space,Str "Darst."]),("publisher",MetaInlines [Str "Springer",Space,Str "Vieweg"]),("publisher-place",MetaInlines [Str "Berlin",Space,Str "[u.a.]"]),("title",MetaInlines [Str "Keine",Space,Str "Angst",Space,Str "vor",Space,Str "Linux,",Space,Str "Unix:",Space,Str "ein",Space,Str "Lehrbuch",Space,Str "f\252r",Space,Str "Linux-",Space,Str "und",Space,Str "Unix-Anwender"]),("type",MetaInlines [Str "book"])])])]})
-[Div ("refs",["references"],[])
+[Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item-1",[],[])
[Para [SmallCaps [Str "Wolfinger,",Space,Str "Christine"],Str ":",Space,Emph [Str "Keine",Space,Str "Angst",Space,Str "vor",Space,Str "Linux,",Space,Str "Unix:",Space,Str "ein",Space,Str "Lehrbuch",Space,Str "f\252r",Space,Str "Linux-",Space,Str "und",Space,Str "Unix-Anwender"],Str ".",Space,Str "11.,",Space,Str "vollst.",Space,Str "\252berarb.",Space,Str "Aufl.",Space,Str "Aufl.",Space,Str "Berlin",Space,Str "[u.a.]\160:",Space,Str "Springer",Space,Str "Vieweg,",Space,Str "2013",Space,Str "\8212\160ISBN\160",Link ("",[],[]) [Str "978-3-642-32078-1"] ("https://worldcat.org/isbn/978-3-642-32078-1","")]]]]
diff --git a/tests/issue351.expected.native b/tests/issue351.expected.native
index 879691f..d98feb5 100644
--- a/tests/issue351.expected.native
+++ b/tests/issue351.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/zeitschrift-fur-kunstgeschichte.csl"]),("references",MetaList [MetaMap (fromList [("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Nietzsche"]),("given",MetaInlines [Str "Friedrich"])])]),("id",MetaInlines [Str "Nie72"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "1872"])])]),("title",MetaInlines [Str "Die",Space,Str "geburt"]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "Nie72", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Friedrich",Space,Str "Nietzsche",Space,Str "(ed.)",Note [Para [Emph [Str "Die",Space,Str "geburt"],Str ",",Space,Str "1872."]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-Nie72",[],[])
[Para [Str "Nietzsche,",Space,Str "Friedrich",Space,Str "(ed.),",Space,Emph [Str "Die",Space,Str "geburt"],Str ",",Space,Str "1872."]]]]
diff --git a/tests/issue356.expected.native b/tests/issue356.expected.native
index d98b5f0..c4cafda 100644
--- a/tests/issue356.expected.native
+++ b/tests/issue356.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Alice"])])]),("id",MetaInlines [Str "foo"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2042"])])]),("other-ids",MetaList [MetaInlines [Str "bar"],MetaInlines [Str "doz"]]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "bar", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Alice",Space,Str "2042)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-foo",[],[])
[Para [Str "Alice.",Space,Str "2042."]]]]
diff --git a/tests/issue360.expected.native b/tests/issue360.expected.native
index 0fcc4a9..6d176f1 100644
--- a/tests/issue360.expected.native
+++ b/tests/issue360.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "L\8217Estrange"]),("given",MetaInlines [Str "Michael"])]),MetaMap (fromList [("family",MetaInlines [Str "Merchant"]),("given",MetaInlines [Str "Stephen"])])]),("id",MetaInlines [Str "lestrange2017"]),("issued",MetaList [MetaMap (fromList [("day",MetaInlines [Str "18"]),("month",MetaInlines [Str "7"]),("year",MetaInlines [Str "2017"])])]),("language",MetaInlines [Str "en-US"]),("title",MetaInlines [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("title-short",MetaInlines [Str "Independent",Space,Str "Intelligence",Space,Str "Review"]),("type",MetaInlines [Str "report"])])])]})
[Para [Cite [Citation {citationId = "lestrange2017", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "Michael",Space,Str "L\8217Estrange",Space,Str "and",Space,Str "Stephen",Space,Str "Merchant,",Space,Emph [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"],Str ",",Space,Str "July",Space,Str "18,",Space,Str "2017."]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-lestrange2017",[],[])
[Para [Str "L\8217Estrange,",Space,Str "Michael,",Space,Str "and",Space,Str "Stephen",Space,Str "Merchant.",Space,Emph [Str "2017",Space,Str "Independent",Space,Str "Intelligence",Space,Str "Review"],Str ",",Space,Str "July",Space,Str "18,",Space,Str "2017."]]]]
diff --git a/tests/issue371.expected.native b/tests/issue371.expected.native
index 7fb5f33..3f5e13e 100644
--- a/tests/issue371.expected.native
+++ b/tests/issue371.expected.native
@@ -1,7 +1,7 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item1"]),("status",MetaInlines [Str "in",Space,Str "press"]),("title",MetaInlines [Str "Title",Space,Str "one"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Jane"])])]),("id",MetaInlines [Str "item2"]),("issued",MetaList [MetaMap (fromList [("year",MetaInlines [Str "2018"])])]),("title",MetaInlines [Str "Title",Space,Str "two"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "Foo",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Doe",Space,Str "2018,",Space,Str "in",Space,Str "press)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item2",[],[])
[Para [Str "Doe,",Space,Str "Jane.",Space,Str "2018.",Space,Emph [Str "Title",Space,Str "Two"],Str "."]]
,Div ("ref-item1",[],[])
diff --git a/tests/issue38.expected.native b/tests/issue38.expected.native
index ffe817f..0441b93 100644
--- a/tests/issue38.expected.native
+++ b/tests/issue38.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ann"])]),MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "Ben"])]),MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("id",MetaInlines [Str "a"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2007"]])])),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-journal"])])])]})
[Para [Cite [Citation {citationId = "a", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Doe,",Space,Str "Doe,",Space,Str "and",Space,Str "Roe",Space,Str "(2007)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-a",[],[])
[Para [Str "Doe,",Space,Str "Ann,",Space,Str "Ben",Space,Str "Doe,",Space,Str "and",Space,Str "Ron",Space,Str "Roe.",Space,Str "2007.",Space,Str "\8220Title.\8221"]]]]
diff --git a/tests/issue47.expected.native b/tests/issue47.expected.native
index 2d724d4..957eaf4 100644
--- a/tests/issue47.expected.native
+++ b/tests/issue47.expected.native
@@ -8,7 +8,7 @@ Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("au
,Para [Str "Doe,",Space,Str "A.,",Space,Str "and",Space,Str "A.",Space,Str "Poe.",Space,Str "2000.",Space,Str "Title."]]
,Para [Str "(See",Space,Str "CMoS,",Space,Str "16e,",Space,Str "15.16,",Space,Quoted DoubleQuote [Str "Single",Space,Str "author",Space,Str "versus",Space,Str "several",Space,Str "authors\8212reference",Space,Str "list",Space,Str "order"],Str ":",Space,Quoted DoubleQuote [Str "Successive",Space,Str "entries",Space,Str "by",Space,Str "two",Space,Str "or",Space,Str "more",Space,Str "authors",Space,Str "in",Space,Str "which",Space,Str "only",Space,Str "the",Space,Str "first",Space,Str "author\8217s",Space,Str "name",Space,Str "is",Space,Str "the",Space,Str "same",Space,Str "are",Space,Str "alphabetized",Space,Str "according",Space,Str "to",Space,Str "the",Space,Str "coauthors\8217",Space,Str "last",Space,Str "names",Space,Str "(regardless",Space,Str "of",Space,Str "how",Space,Str "many",Space,Str "coauthors",Space,Str "there",Space,Str "are)."],Space,Str "and",Space,Str "15.18,",Space,Quoted DoubleQuote [Str "The",Space,Str "3-em",Space,Str "dash",Space,Str "with",Space,Str "edited,",Space,Str "translated,",Space,Str "or",Space,Str "compiled",Space,Str "works"],Str ":",Space,Quoted DoubleQuote [Str "The",Space,Str "chronological",Space,Str "order",Space,Str "is",Space,Str "maintained,",Space,Str "regardless",Space,Str "of",Space,Str "the",Space,Str "added",Space,Str "abbreviation.",Space,Str "[ed.,",Space,Str "trans.,",Space,Str "comp.,",Space,Str "or",Space,Str "whatever]"]]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-doe",[],[])
[Para [Str "Doe,",Space,Str "A.",Space,Str "2000a.",Space,Emph [Str "Title"],Str "."]]
,Div ("ref-doe-ed",[],[])
diff --git a/tests/issue51.expected.native b/tests/issue51.expected.native
index c3bf445..e079206 100644
--- a/tests/issue51.expected.native
+++ b/tests/issue51.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "John"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"],MetaList [MetaString "1988"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "3")]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Roe"]),("given",MetaInlines [Str "Ron"])])]),("container-title",MetaInlines [Str "Journal",Space,Str "of",Space,Str "Something"]),("id",MetaInlines [Str "item2"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1987"]])])),("page",MetaInlines [Str "12-34"]),("title",MetaInlines [Str "The",Space,Str "title"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaString "4")])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Doe",Space,Str "(1987\8211\&1988)"],Str ";",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "Roe",Space,Str "(1987)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Doe,",Space,Str "John.",Space,Str "1987\8211\&1988.",Space,Str "\8220The",Space,Str "Title.\8221",Space,Emph [Str "Journal",Space,Str "of",Space,Str "Something"],Space,Str "3:",Space,Str "12\8211\&34."]]
,Div ("ref-item2",[],[])
diff --git a/tests/issue57.expected.native b/tests/issue57.expected.native
index 3d64957..149bb79 100644
--- a/tests/issue57.expected.native
+++ b/tests/issue57.expected.native
@@ -1,4 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-author-date-with-original-date-and-status.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Faraday"]),("given",MetaInlines [Str "Carry"])])]),("container-title",MetaInlines [Str "Seven",Space,Str "Trips",Space,Str "beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"]),("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Oring"]),("given",MetaInlines [Str "James"])])]),("id",MetaInlines [Str "Faraday-forthcoming"]),("publisher",MetaInlines [Str "Launch",Space,Str "Press"]),("publisher-place",MetaInlines [Str "Cape",Space,Str "Canaveral,",Space,Str "FL"]),("status",MetaInlines [Str "forthcoming"]),("title",MetaInlines [Str "Protean",Space,Str "photography"]),("type",MetaInlines [Str "chapter"])])])]})
[Para [Cite [Citation {citationId = "Faraday-forthcoming", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Faraday,",Space,Str "forthcoming)"]]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[]) [Div ("ref-Faraday-forthcoming",[],[]) [Para [Str "Faraday,",Space,Str "Carry.",Space,Str "Forthcoming.",Space,Str "\8220Protean",Space,Str "Photography.\8221",Space,Str "In",Space,Emph [Str "Seven",Space,Str "Trips",Space,Str "Beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"],Str ",",Space,Str "edited",Space,Str "by",Space,Str "James",Space,Str "Oring.",Space,Str "Cape",Space,Str "Canaveral,",Space,Str "FL:",Space,Str "Launch",Space,Str "Press."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-Faraday-forthcoming",[],[])
+ [Para [Str "Faraday,",Space,Str "Carry.",Space,Str "Forthcoming.",Space,Str "\8220Protean",Space,Str "Photography.\8221",Space,Str "In",Space,Emph [Str "Seven",Space,Str "Trips",Space,Str "Beyond",Space,Str "the",Space,Str "Asteroid",Space,Str "Belt"],Str ",",Space,Str "edited",Space,Str "by",Space,Str "James",Space,Str "Oring.",Space,Str "Cape",Space,Str "Canaveral,",Space,Str "FL:",Space,Str "Launch",Space,Str "Press."]]]]
diff --git a/tests/issue58.expected.native b/tests/issue58.expected.native
index f2e4ba9..e3e38ff 100644
--- a/tests/issue58.expected.native
+++ b/tests/issue58.expected.native
@@ -1,4 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/issue58.csl"]),("references",MetaList [MetaMap (fromList [("id",MetaInlines [Str "stanze"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1547"]])])),("language",MetaInlines [Str "it-IT"]),("publisher-place",MetaInlines [Str "Florence"]),("title",MetaInlines [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "In",Space,Str "this",Space,Str "item,",Space,Str "the",Space,Str "title",Space,Str "replaces",Space,Str "the",Space,Str "(unknown)",Space,Str "author",Space,Str "(see",Space,Str "14.79)",Space,Cite [Citation {citationId = "stanze", citationPrefix = [], citationSuffix = [Str ",",Space,Str "p.",Space,Str "12"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(",Emph [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"],Space,Str "1547,",Space,Str "12)"],Str "."]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[]) [Div ("ref-stanze",[],[]) [Para [Emph [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"],Str ".",Space,Str "1547.",Space,Str "Florence."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-stanze",[],[])
+ [Para [Emph [Str "Stanze",Space,Str "in",Space,Str "lode",Space,Str "della",Space,Str "donna",Space,Str "brutta"],Str ".",Space,Str "1547.",Space,Str "Florence."]]]]
diff --git a/tests/issue61.expected.native b/tests/issue61.expected.native
index 5068f5a..d72a503 100644
--- a/tests/issue61.expected.native
+++ b/tests/issue61.expected.native
@@ -6,7 +6,7 @@ Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/modern-humanitie
,Para [Str "Foo",Cite [Citation {citationId = "roe", citationPrefix = [], citationSuffix = [Str ",",Space,Str "MVIII,",Space,Str "89"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 4}] [Note [Para [Str "Roe,",Space,Str "MVIII,",Space,Str "89."]]]]
,Para [Str "Foo",Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [Str ",",Space,Str "CL,",Space,Str "89"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 5}] [Note [Para [Str "Doe,",Space,Str "CL,",Space,Str "89."]]]]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-doe",[],[])
[Para [Str "Doe,",Space,Str "John,",Space,Emph [Str "Title"],Space,Str "(Publisher,",Space,Str "1985)"]]
,Div ("ref-roe",[],[])
diff --git a/tests/issue64.expected.native b/tests/issue64.expected.native
index b418c82..91192e2 100644
--- a/tests/issue64.expected.native
+++ b/tests/issue64.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("bibliography",MetaList [MetaInlines [Str "tests/biblio.bib"]]),("nocite",MetaInlines [Cite [Citation {citationId = "*", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\nocite{*}"]])]})
-[Div ("refs",["references"],[])
+[Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Doe,",Space,Str "John.",Space,Str "2005.",Space,Emph [Str "First",Space,Str "Book"],Str ".",Space,Str "Cambridge:",Space,Str "Cambridge",Space,Str "University",Space,Str "Press."]]
,Div ("ref-item2",[],[])
diff --git a/tests/issue65.expected.native b/tests/issue65.expected.native
index 51ed1e4..6f63a7f 100644
--- a/tests/issue65.expected.native
+++ b/tests/issue65.expected.native
@@ -1,3 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "3406493556"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Stotz"]),("given",MetaInlines [Str "Peter"])])]),("call-number",MetaInlines [Str "PA25",Space,Str "PA2616",Space,Str ".H24",Space,Str "Abt.",Space,Str "2,",Space,Str "T.",Space,Str "5,",Space,Str "Bd.",Space,Str "2,",Space,Str "etc"]),("collection-number",MetaInlines [Str "2.5"]),("collection-title",MetaInlines [Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft"]),("event-place",MetaInlines [Str "Munich"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "stotz:1996handbuch"]),("issued",MetaMap (fromList [("literal",MetaInlines [Str "1996_2004"])])),("language",MetaInlines [Str "German"]),("number-of-volumes",MetaInlines [Str "5"]),("publisher",MetaInlines [Str "Beck"]),("publisher-place",MetaInlines [Str "Munich"]),("source",MetaInlines [Str "Library",Space,Str "of",Space,Str "Congress",Space,Str "ISBN"]),("title",MetaInlines [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"]),("title-short",MetaInlines [Str "Handbuch"]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "stotz:1996handbuch", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "(Stotz",Space,Str "1996\8211\&2004)"]]
-,Div ("refs",["references"],[]) [Div ("ref-stotz:1996handbuch",[],[]) [Para [Str "Stotz,",Space,Str "Peter.",Space,Str "1996\8211\&2004.",Space,Emph [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"],Str ".",Space,Str "5",Space,Str "vols.",Space,Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft",Space,Str "2.5.",Space,Str "Munich:",Space,Str "Beck."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-stotz:1996handbuch",[],[])
+ [Para [Str "Stotz,",Space,Str "Peter.",Space,Str "1996\8211\&2004.",Space,Emph [Str "Handbuch",Space,Str "zur",Space,Str "lateinischen",Space,Str "Sprache",Space,Str "des",Space,Str "Mittelalters"],Str ".",Space,Str "5",Space,Str "vols.",Space,Str "Handbuch",Space,Str "der",Space,Str "Altertumswissenschaft",Space,Str "2.5.",Space,Str "Munich:",Space,Str "Beck."]]]]
diff --git a/tests/issue68.expected.native b/tests/issue68.expected.native
index 45f547c..bacbb5c 100644
--- a/tests/issue68.expected.native
+++ b/tests/issue68.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "0888441088"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Goering"]),("given",MetaInlines [Str "Joseph"])])]),("call-number",MetaInlines [Str "BV4009",Space,Str ".W55",Space,Str "1992"]),("collection-number",MetaInlines [Str "108"]),("collection-title",MetaInlines [Str "Studies",Space,Str "and",Space,Str "Texts"]),("event-place",MetaInlines [Str "Toronto"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "goering:1992william"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1992"]])])),("publisher",MetaInlines [Str "Pontifical",Space,Str "Institute",Space,Str "of",Space,Str "Mediaeval",Space,Str "Studies"]),("publisher-place",MetaInlines [Str "Toronto"]),("source",MetaInlines [Str "toroprod.library.utoronto.ca",Space,Str "Library",Space,Str "Catalog"]),("title",MetaInlines [Str "William",Space,Str "de",Space,Str "Montibus",Space,Str "(c.",Space,Str "1140\8211\&1213):",Space,Str "The",Space,Str "Schools",Space,Str "and",Space,Str "the",Space,Str "Literature",Space,Str "of",Space,Str "Pastoral",Space,Str "Care"]),("title-short",MetaInlines [Str "William",Space,Str "de",Space,Str "Montibus"]),("type",MetaInlines [Str "book"])])])]})
[Para [Str "...",Space,Str "a",Space,Str "prose",Space,Str "commentary",Str ".",Cite [Citation {citationId = "goering:1992william", citationPrefix = [Str "the",Space,Str "text",Space,Str "of",Space,Str "fol.",Space,Str "9r",Space,Str "is",Space,Str "printed",Space,Str "in"], citationSuffix = [Str ",",Space,Str "pp.",Space,Str "501\8211\&3"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Note [Para [Str "The",Space,Str "text",Space,Str "of",Space,Str "fol.",Space,Str "9r",Space,Str "is",Space,Str "printed",Space,Str "in",Space,Str "Joseph",Space,Str "Goering,",Space,Emph [Str "William",Space,Str "de",Space,Str "Montibus",Space,Str "(c.",Space,Str "1140\8211\&1213):",Space,Str "The",Space,Str "Schools",Space,Str "and",Space,Str "the",Space,Str "Literature",Space,Str "of",Space,Str "Pastoral",Space,Str "Care"],Str ",",Space,Str "Studies",Space,Str "and",Space,Str "Texts",Space,Str "108",Space,Str "(Toronto:",Space,Str "Pontifical",Space,Str "Institute",Space,Str "of",Space,Str "Mediaeval",Space,Str "Studies,",Space,Str "1992),",Space,Str "501\8211\&3."]]],Space,Str "...",Space,Str "a",Space,Str "collection",Space,Str "of",Space,Str "verses",Space,Str "with",Space,Str "a",Space,Str "formal",Space,Str "prose",Space,Str "commentary",Cite [Citation {citationId = "goering:1992william", citationPrefix = [Str "excerpts",Space,Str "from",Space,Str "this",Space,Str "text",Space,Str "were",Space,Str "previously",Space,Str "printed",Space,Str "in"], citationSuffix = [Str ",",Space,Str "p.",Space,Str "508\8211\&14"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "goering:1992william", citationPrefix = [Str "it",Space,Str "was",Space,Str "also",Space,Str "briefly",Space,Str "described",Space,Str "in"], citationSuffix = [Str ",",Space,Str "pp.",Space,Str "141\8211\&42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3}] [Note [Para [Str "Excerpts",Space,Str "from",Space,Str "this",Space,Str "text",Space,Str "were",Space,Str "previously",Space,Str "printed",Space,Str "in",Space,Str "ibid.,",Space,Str "508\8211\&14;",Space,Str "it",Space,Str "was",Space,Str "also",Space,Str "briefly",Space,Str "described",Space,Str "in",Space,Str "ibid.,",Space,Str "141\8211\&42."]]],Space,Str "...",Space,Str "and",Space,Str "finally",Space,Str "a",Space,Str "note",Space,Str "starting",Space,Str "with",Space,Str "a",Space,Str "citation",Str ".",Cite [Citation {citationId = "goering:1992william", citationPrefix = [], citationSuffix = [Str ",",Space,Str "pp.",Space,Str "141-42"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 4}] [Note [Para [Str "Ibid.,",Space,Str "141\8211\&42."]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-goering:1992william",[],[])
[Para [Str "Goering,",Space,Str "Joseph.",Space,Emph [Str "William",Space,Str "de",Space,Str "Montibus",Space,Str "(c.",Space,Str "1140\8211\&1213):",Space,Str "The",Space,Str "Schools",Space,Str "and",Space,Str "the",Space,Str "Literature",Space,Str "of",Space,Str "Pastoral",Space,Str "Care"],Str ".",Space,Str "Studies",Space,Str "and",Space,Str "Texts",Space,Str "108.",Space,Str "Toronto:",Space,Str "Pontifical",Space,Str "Institute",Space,Str "of",Space,Str "Mediaeval",Space,Str "Studies,",Space,Str "1992."]]]]
diff --git a/tests/issue7.expected.native b/tests/issue7.expected.native
index cb69e3c..3521a9b 100644
--- a/tests/issue7.expected.native
+++ b/tests/issue7.expected.native
@@ -1,5 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Ann"]])])),("container-title",MetaInlines [Str "Journal"]),("id",MetaInlines [Str "item1"]),("issued",MetaList [MetaMap (fromList [("day",MetaString "24"),("month",MetaString "9"),("year",MetaString "2011")]),MetaMap (fromList [("day",MetaString "26"),("month",MetaString "9"),("year",MetaString "2011")])]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "article-magazine"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Author",Space,Str "(2011)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Str "Author,",Space,Str "Ann.",Space,Str "2011.",Space,Str "\8220Title.\8221",Space,Emph [Str "Journal"],Str ",",Space,Str "September",Space,Str "24\8211\&26,",Space,Str "2011."]]]]
diff --git a/tests/issue70.expected.native b/tests/issue70.expected.native
index 1fe3f90..dbe46d8 100644
--- a/tests/issue70.expected.native
+++ b/tests/issue70.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("ISBN",MetaInlines [Str "9782503531465"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Dinkova-Bruun"]),("given",MetaInlines [Str "Greti"])])]),("call-number",MetaInlines [Str "CB351",Space,Str ".F564",Space,Str "2009"]),("collection-number",MetaInlines [Str "50"]),("collection-title",MetaInlines [Str "Textes",Space,Str "et",Space,Str "\233tudes",Space,Str "du",Space,Str "moyen",Space,Str "\226ge"]),("container-title",MetaInlines [Str "Florilegium",Space,Str "mediaevale:",Space,Str "\201tudes",Space,Str "offertes",Space,Str "\224",Space,Str "Jacqueline",Space,Str "Hamesse",Space,Str "\224",Space,Str "l\8217occasion",Space,Str "de",Space,Str "son",Space,Str "\233m\233ritat"]),("editor",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Meirinhos"]),("given",MetaInlines [Str "Jos\233",Space,Str "Francisco"])]),MetaMap (fromList [("family",MetaInlines [Str "Weijers"]),("given",MetaInlines [Str "Olga"])])]),("event-place",MetaInlines [Str "Louvain-la-Neuve"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "bruun:2009samuel"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2009"]])])),("language",MetaInlines [Str "French"]),("page",MetaInlines [Str "155\8211\&174"]),("publisher",MetaInlines [Str "F\233d\233ration",Space,Str "Internationale",Space,Str "des",Space,Str "Instituts",Space,Str "d\8217\201tudes",Space,Str "M\233di\233vales"]),("publisher-place",MetaInlines [Str "Louvain-la-Neuve"]),("source",MetaInlines [Str "Library",Space,Str "of",Space,Str "Congress",Space,Str "ISBN"]),("title",MetaInlines [Str "Samuel",Space,Str "Presbyter",Space,Str "and",Space,Str "the",Space,Str "Glosses",Space,Str "to",Space,Str "His",Space,Str "Versification",Space,Str "of",Space,Str "Psalm",Space,Str "1:",Space,Str "An",Space,Str "Anti-Church",Space,Str "Invective?"]),("title-short",MetaInlines [Str "Samuel",Space,Str "Presbyter"]),("type",MetaInlines [Str "chapter"])]),MetaMap (fromList [("ISSN",MetaInlines [Str "0362-1529"]),("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Thorndike"]),("given",MetaInlines [Str "Lynn"])])]),("container-title",MetaInlines [Str "Traditio"]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "thorndike:1955unde"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1955"]])])),("language",MetaInlines [Str "Latin"]),("note",MetaInlines [Str "ArticleType:",Space,Str "research-article",Space,Str "/",Space,Str "Full",Space,Str "publication",Space,Str "date:",Space,Str "1955",Space,Str "/",Space,Str "Copyright",Space,Str "\169",Space,Str "1955",Space,Str "Fordham",Space,Str "University"]),("page",MetaInlines [Str "163\8211\&193"]),("source",MetaInlines [Str "JSTOR"]),("title",MetaInlines [Str "Unde",Space,Str "versus"]),("type",MetaInlines [Str "article-journal"]),("volume",MetaInlines [Str "11"])])])]})
[Para [Cite [Citation {citationId = "thorndike:1955unde", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "bruun:2009samuel", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2}] [Str "(Thorndike",Space,Str "1955;",Space,Str "Dinkova-Bruun",Space,Str "2009)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-bruun:2009samuel",[],[])
[Para [Str "Dinkova-Bruun,",Space,Str "Greti.",Space,Str "2009.",Space,Str "\8220Samuel",Space,Str "Presbyter",Space,Str "and",Space,Str "the",Space,Str "Glosses",Space,Str "to",Space,Str "His",Space,Str "Versification",Space,Str "of",Space,Str "Psalm",Space,Str "1:",Space,Str "An",Space,Str "Anti-Church",Space,Str "Invective?\8221",Space,Str "In",Space,Emph [Str "Florilegium",Space,Str "mediaevale:",Space,Str "\201tudes",Space,Str "offertes",Space,Str "\224",Space,Str "Jacqueline",Space,Str "Hamesse",Space,Str "\224",Space,Str "l\8217occasion",Space,Str "de",Space,Str "son",Space,Str "\233m\233ritat"],Str ",",Space,Str "edited",Space,Str "by",Space,Str "Jos\233",Space,Str "Francisco",Space,Str "Meirinhos",Space,Str "and",Space,Str "Olga",Space,Str "Weijers,",Space,Str "155\8211\&74.",Space,Str "Textes",Space,Str "et",Space,Str "\233tudes",Space,Str "du",Space,Str "moyen",Space,Str "\226ge",Space,Str "50.",Space,Str "Louvain-la-Neuve:",Space,Str "F\233d\233ration",Space,Str "Internationale",Space,Str "des",Space,Str "Instituts",Space,Str "d\8217\201tudes",Space,Str "M\233di\233vales."]]
,Div ("ref-thorndike:1955unde",[],[])
diff --git a/tests/issue75.expected.native b/tests/issue75.expected.native
index ac55bd9..ba9a51c 100644
--- a/tests/issue75.expected.native
+++ b/tests/issue75.expected.native
@@ -10,4 +10,6 @@ Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/apa.csl"]),("ref
,Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [Space,Str "bk.",Space,Str "VI"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 9}] [Str "(Doe,",Space,Str "2006,",Space,Str "bk.",Space,Str "VI)"]]
,Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [Str ",",Space,Str "no.",Space,Str "6"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 10}] [Str "(Doe,",Space,Str "2006,",Space,Str "no.",Space,Str "6)"]]
,Para [Cite [Citation {citationId = "test", citationPrefix = [], citationSuffix = [Str ",",Space,Str "nos.",Space,Str "6",Space,Str "and",Space,Str "7"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 11}] [Str "(Doe,",Space,Str "2006,",Space,Str "no.",Space,Str "6",Space,Str "and",Space,Str "7)"]]
-,Div ("refs",["references"],[]) [Div ("ref-test",[],[]) [Para [Str "Doe,",Space,Str "J.",Space,Str "(2006).",Space,Str "Test,",Space,Emph [Str "81"],Str "."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-test",[],[])
+ [Para [Str "Doe,",Space,Str "J.",Space,Str "(2006).",Space,Str "Test,",Space,Emph [Str "81"],Str "."]]]]
diff --git a/tests/issue76.expected.native b/tests/issue76.expected.native
index c5a6f7a..6a48c67 100644
--- a/tests/issue76.expected.native
+++ b/tests/issue76.expected.native
@@ -1,3 +1,11 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "bazbaz",Space,Str "bar",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item2"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "the",Space,Str "bazbaz",Space,Str "bar",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item3"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "a",Space,Str "bazbaz",Space,Str "bar",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaInlines [Str "Al"])])]),("id",MetaInlines [Str "item4"]),("issued",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "1998"]])])),("title",MetaInlines [Str "foo",Space,Str "bar",Space,Str "baz:",Space,Str "an",Space,Str "abazbaz",Space,Str "bar",Space,Str "foo"]),("type",MetaInlines [Str "article-journal"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Author",Space,Str "(1998c)"],Str ",",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "Author",Space,Str "(1998d)"],Str ",",Space,Cite [Citation {citationId = "item3", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 3}] [Str "Author",Space,Str "(1998a)"],Str ",",Space,Cite [Citation {citationId = "item4", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 4}] [Str "Author",Space,Str "(1998b)"]]
-,Div ("refs",["references"],[]) [Div ("ref-item3",[],[]) [Para [Str "Author,",Space,Str "Al.",Space,Str "1998a.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "A",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]],Div ("ref-item4",[],[]) [Para [Str "\8212\8212\8212.",Space,Str "1998b.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "An",Space,Str "Abazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]],Div ("ref-item1",[],[]) [Para [Str "\8212\8212\8212.",Space,Str "1998c.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]],Div ("ref-item2",[],[]) [Para [Str "\8212\8212\8212.",Space,Str "1998d.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "The",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-item3",[],[])
+ [Para [Str "Author,",Space,Str "Al.",Space,Str "1998a.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "A",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]]
+ ,Div ("ref-item4",[],[])
+ [Para [Str "\8212\8212\8212.",Space,Str "1998b.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "An",Space,Str "Abazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]]
+ ,Div ("ref-item1",[],[])
+ [Para [Str "\8212\8212\8212.",Space,Str "1998c.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]]
+ ,Div ("ref-item2",[],[])
+ [Para [Str "\8212\8212\8212.",Space,Str "1998d.",Space,Str "\8220Foo",Space,Str "Bar",Space,Str "Baz:",Space,Str "The",Space,Str "Bazbaz",Space,Str "Bar",Space,Str "Foo.\8221"]]]]
diff --git a/tests/issue77.expected.native b/tests/issue77.expected.native
index 5afe8f8..4adfa67 100644
--- a/tests/issue77.expected.native
+++ b/tests/issue77.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-fullnote-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Doe"]),("given",MetaInlines [Str "John,",Space,Str "III"]),("parse-names",MetaBool True)])]),("id",MetaInlines [Str "item1"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "van",Space,Str "Gogh"]),("given",MetaInlines [Str "Vincent"]),("parse-names",MetaBool True)])]),("id",MetaInlines [Str "item2"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Humboldt"]),("given",MetaInlines [Str "Alexander",Space,Str "von"]),("parse-names",MetaBool True)])]),("id",MetaInlines [Str "item3"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Bennett"]),("given",MetaInlines [Str "Frank",Space,Str "G.,!",Space,Str "Jr."]),("parse-names",MetaBool True)])]),("id",MetaInlines [Str "item4"]),("type",MetaInlines [Str "book"])]),MetaMap (fromList [("author",MetaList [MetaMap (fromList [("family",MetaInlines [Str "Dumboldt"]),("given",MetaInlines [Str "Ezekiel,",Space,Str "III"]),("parse-names",MetaBool True)])]),("id",MetaInlines [Str "item5"]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1},Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 2},Citation {citationId = "item3", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 3},Citation {citationId = "item4", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 4},Citation {citationId = "item5", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 5}] [Note [Para [Str "John",Space,Str "Doe",Space,Str "III,",Space,Str "n.d.;",Space,Str "Vincent",Space,Str "van",Space,Str "Gogh,",Space,Str "n.d.;",Space,Str "Alexander",Space,Str "von",Space,Str "Humboldt,",Space,Str "n.d.;",Space,Str "Frank",Space,Str "G.",Space,Str "Bennett,",Space,Str "Jr.,",Space,Str "n.d.;",Space,Str "Ezekiel",Space,Str "Dumboldt",Space,Str "III,",Space,Str "n.d."]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item4",[],[])
[Para [Str "Bennett,",Space,Str "Frank",Space,Str "G.,",Space,Str "Jr.,",Space,Str "n.d."]]
,Div ("ref-item1",[],[])
diff --git a/tests/issue82.expected.native b/tests/issue82.expected.native
index eba39b1..ccaa303 100644
--- a/tests/issue82.expected.native
+++ b/tests/issue82.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/chicago-annotated-bibliography.csl"]),("references",MetaList [MetaMap (fromList [("URL",MetaInlines [Str "https://www.worldcat.org/"]),("accessed",MetaMap (fromList [("date-parts",MetaList [MetaList [MetaString "2014",MetaString "9",MetaString "19"]])])),("author",MetaList [MetaMap (fromList [("literal",MetaInlines [Str "OCLC"])])]),("first-reference-note-number",MetaString "1"),("id",MetaInlines [Str "OCLC_i1099"]),("title",MetaInlines [Str "WorldCat"]),("type",MetaInlines [Str "webpage"])])])]})
[Header 1 ("title",[],[]) [Str "Title"]
,Para [Str "Some",Space,Str "text.",Note [Para [Str "Comment",Space,Str "regarding",Space,Str "text,",Space,Str "supported",Space,Str "by",Space,Str "citation",Space,Cite [Citation {citationId = "OCLC_i1099", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 1}] [Str "OCLC,",Space,Str "\8220WorldCat.\8221"]]]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-OCLC_i1099",[],[])
[Para [Str "OCLC.",Space,Str "\8220WorldCat.\8221",Space,Str "Accessed",Space,Str "September",Space,Str "19,",Space,Str "2014.",Space,Link ("",[],[]) [Str "https://www.worldcat.org/"] ("https://www.worldcat.org/",""),Str "."]]]]
diff --git a/tests/issue87.expected.native b/tests/issue87.expected.native
index b2dcd6a..2f4856d 100644
--- a/tests/issue87.expected.native
+++ b/tests/issue87.expected.native
@@ -6,7 +6,7 @@ Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("UR
,Para [Cite [Citation {citationId = "item3", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 5}] [Str "Doe",Space,Str "(2006e)"],Space,Str "\8211",Space,Str "article-newspaper"]
,Para [Cite [Citation {citationId = "item3b", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 6}] [Str "Doe",Space,Str "(2006b)"],Space,Str "\8211",Space,Str "article-newspaper",Space,Str "YM"]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item2a",[],[])
[Para [Str "Doe,",Space,Str "John.",Space,Str "2006a.",Space,Str "\8220Title.\8221",Space,Str "The",Space,Str "Web",Space,Str "Site.",Space,Str "October\8211November",Space,Str "2006.",Space,Link ("",[],[]) [Str "http://www.example.com"] ("http://www.example.com",""),Str "."]]
,Div ("ref-item3b",[],[])
diff --git a/tests/jats.csl b/tests/jats.csl
deleted file mode 100644
index 6487286..0000000
--- a/tests/jats.csl
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
- <info>
- <title>Journal Article Tag Suite</title>
- <title-short>JATS</title-short>
- <id>http://www.zotero.org/styles/journal-article-tag-suite</id>
- <link href="https://github.com/MartinPaulEve/JATS-CSL/blob/master/jats.csl" rel="self"/>
- <link rel="documentation" href="http://jats.nlm.nih.gov/archiving/tag-library/1.0/index.html"/>
- <author>
- <name>Martin Paul Eve</name>
- <email>martin@martineve.com</email>
- </author>
- <category citation-format="numeric"/>
- <category field="medicine"/>
- <category field="biology"/>
- <summary>Use this style to generate bibliographic data in Journal Article Tagging Suite (JATS) 1.0 XML format</summary>
- <updated>2014-06-21T17:41:26+00:00</updated>
- <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Originally by Martin Fenner.</rights>
- </info>
- <locale xml:lang="en">
- <terms>
- <term name="et-al">{{jats}}&lt;etal/&gt;{{/jats}}</term>
- </terms>
- </locale>
- <macro name="citation-number">
- <text variable="citation-number" prefix="{{jats}}id=&quot;ref-{{/jats}}" suffix="{{jats}}&quot;&gt;{{/jats}}"/>
- </macro>
- <macro name="author">
- <names variable="author">
- <name prefix="{{jats}}&lt;name&gt;{{/jats}}" suffix="{{jats}}&lt;/name&gt;{{/jats}}" name-as-sort-order="all" sort-separator="">
- <name-part name="family" text-case="capitalize-first" prefix="{{jats}}&lt;surname&gt;{{/jats}}" suffix="{{jats}}&lt;/surname&gt;{{/jats}}"/>
- <name-part name="given" text-case="capitalize-first" prefix="{{jats}}&lt;given-names&gt;{{/jats}}" suffix="{{jats}}&lt;/given-names&gt;{{/jats}}"/>
- </name>
- <substitute>
- <names variable="editor"/>
- </substitute>
- </names>
- </macro>
-
- <macro name="editor">
- <names variable="editor" prefix="{{jats}}&lt;person-group person-group-type=&quot;editor&quot;&gt;{{/jats}}" suffix="{{jats}}&lt;/person-group&gt;{{/jats}}">
- <name prefix="{{jats}}&lt;name&gt;{{/jats}}" suffix="{{jats}}&lt;/name&gt;{{/jats}}" name-as-sort-order="all" sort-separator="">
- <name-part name="family" text-case="capitalize-first" prefix="{{jats}}&lt;surname&gt;{{/jats}}" suffix="{{jats}}&lt;/surname&gt;{{/jats}}"/>
- <name-part name="given" text-case="capitalize-first" prefix="{{jats}}&lt;given-names&gt;{{/jats}}" suffix="{{jats}}&lt;/given-names&gt;{{/jats}}"/>
- </name>
- <substitute>
- <names variable="editor"/>
- </substitute>
- </names>
- </macro>
-
- <macro name="editor">
- <group delimiter=": ">
- <names variable="editor">
- <name prefix="{{jats}}&lt;name&gt;{{/jats}}" suffix="{{jats}}&lt;/name&gt;{{/jats}}" name-as-sort-order="all" sort-separator="">
- <name-part name="family" text-case="capitalize-first" prefix="{{jats}}&lt;surname&gt;{{/jats}}" suffix="{{jats}}&lt;/surname&gt;{{/jats}}"/>
- <name-part name="given" text-case="capitalize-first" prefix="{{jats}}&lt;given-names&gt;{{/jats}}" suffix="{{jats}}&lt;given-names&gt;{{/jats}}"/>
- </name>
- </names>
- </group>
- </macro>
- <macro name="title">
- <choose>
- <if type="book" match="any">
- <group prefix="{{jats}}&lt;source&gt;{{/jats}}" suffix="{{jats}}&lt;/source&gt;{{/jats}}">
- <text variable="title"/>
- </group>
- </if>
- <else>
- <group prefix="{{jats}}&lt;article-title&gt;{{/jats}}" suffix="{{jats}}&lt;/article-title&gt;{{/jats}}">
- <text variable="title"/>
- </group>
- </else>
- </choose>
- </macro>
- <macro name="container-title">
- <text variable="container-title" form="short" prefix="{{jats}}&lt;source&gt;{{/jats}}" suffix="{{jats}}&lt;/source&gt;{{/jats}}"/>
- </macro>
- <macro name="publisher">
- <text variable="publisher" prefix="{{jats}}&lt;publisher-name&gt;{{/jats}}" suffix="{{jats}}&lt;/publisher-name&gt;{{/jats}}"/>
- <text variable="publisher-place" prefix="{{jats}}&lt;publisher-loc&gt;{{/jats}}" suffix="{{jats}}&lt;/publisher-loc&gt;{{/jats}}"/>
- </macro>
- <macro name="link">
- <choose>
- <if match="any" variable="DOI">
- <group prefix="{{jats}}&lt;pub-id pub-id-type=&quot;doi&quot;&gt;{{/jats}}" suffix="{{jats}}&lt;/pub-id&gt;{{/jats}}">
- <text variable="DOI"/>
- </group>
- </if>
- </choose>
- <choose>
- <if match="any" variable="PMID">
- <group prefix="{{jats}}&lt;ext-link ext-link-type=&quot;pmid&quot; {{/jats}}" suffix="{{jats}}&lt;/ext-link&gt;{{/jats}}">
- <text variable="PMID" prefix="{{jats}}xlink:href=&quot;http://www.ncbi.nlm.nih.gov/pubmed/{{/jats}}" suffix="{{jats}}&quot; xlink:type=&quot;simple&quot;&gt;{{/jats}}"/>
- <text variable="PMID"/>
- </group>
- </if>
- </choose>
- <choose>
- <if variable="URL" match="any">
- <group prefix="{{jats}}&lt;ext-link ext-link-type=&quot;uri&quot; {{/jats}}" suffix="{{jats}}&lt;/ext-link&gt;{{/jats}}">
- <text variable="URL" prefix="{{jats}}xlink:href=&quot;{{/jats}}" suffix="{{jats}}&quot; xlink:type=&quot;simple&quot;&gt;{{/jats}}"/>
- <text variable="URL"/>
- </group>
- </if>
- </choose>
- </macro>
- <macro name="date">
- <choose>
- <if type="article-journal article-magazine article-newspaper report patent book" match="any">
- <group prefix="{{jats}}&lt;date&gt;{{/jats}}" suffix="{{jats}}&lt;/date&gt;{{/jats}}">
- <date variable="issued">
- <date-part name="day" form="numeric-leading-zeros" prefix="{{jats}}&lt;day&gt;{{/jats}}" suffix="{{jats}}&lt;/day&gt;{{/jats}}"/>
- <date-part name="month" form="numeric-leading-zeros" prefix="{{jats}}&lt;month&gt;{{/jats}}" suffix="{{jats}}&lt;/month&gt;{{/jats}}"/>
- <date-part name="year" prefix="{{jats}}&lt;year&gt;{{/jats}}" suffix="{{jats}}&lt;/year&gt;{{/jats}}"/>
- </date>
- </group>
- </if>
- <else>
- <group prefix="{{jats}}&lt;date-in-citation content-type=&quot;access-date&quot;{{/jats}}" suffix="{{jats}}&lt;/date-in-citation&gt;{{/jats}}">
- <date variable="accessed" prefix="{{jats}} iso-8601-date=&quot;{{/jats}}" suffix="{{jats}}&quot;&gt;{{/jats}}">
- <date-part name="year"/>
- <date-part name="month" form="numeric-leading-zeros" prefix="{{jats}}-{{/jats}}"/>
- <date-part name="day" form="numeric-leading-zeros" prefix="{{jats}}-{{/jats}}"/>
- </date>
- <date variable="accessed">
- <date-part name="day" prefix="{{jats}}&lt;day&gt;{{/jats}}" suffix="{{jats}}&lt;/day&gt;{{/jats}}"/>
- <date-part name="month" form="numeric-leading-zeros" prefix="{{jats}}&lt;month&gt;{{/jats}}" suffix="{{jats}}&lt;/month&gt;{{/jats}}"/>
- <date-part name="year" prefix="{{jats}}&lt;year&gt;{{/jats}}" suffix="{{jats}}&lt;/year&gt;{{/jats}}"/>
- </date>
- </group>
- </else>
- </choose>
- </macro>
- <macro name="location">
- <choose>
- <if type="article-journal article-magazine" match="any">
- <text variable="volume" prefix="{{jats}}&lt;volume&gt;{{/jats}}" suffix="{{jats}}&lt;/volume&gt;{{/jats}}"/>
- <text variable="issue" prefix="{{jats}}&lt;issue&gt;{{/jats}}" suffix="{{jats}}&lt;/issue&gt;{{/jats}}"/>
- </if>
- </choose>
- <choose>
- <if type="article-journal article-magazine article-newspaper chapter" match="any">
- <text variable="page-first" prefix="{{jats}}&lt;fpage&gt;{{/jats}}" suffix="{{jats}}&lt;/fpage&gt;{{/jats}}"/>
- </if>
- </choose>
- </macro>
- <macro name="publication-type">
- <group prefix="{{jats}} publication-type=&quot;{{/jats}}" suffix="{{jats}}&quot;&gt;{{/jats}}">
- <choose>
- <if type="article-journal article-magazine article-newspaper" match="any">
- <text value="journal"/>
- </if>
- <else-if type="book" match="any">
- <text value="book"/>
- </else-if>
- <else-if type="chapter" match="any">
- <text value="bookchapter"/>
- </else-if>
- <else-if type="dataset" match="any">
- <text value="dataset"/>
- </else-if>
- <else-if type="patent" match="any">
- <text value="patent"/>
- </else-if>
- <else-if type="report" match="any">
- <text value="report"/>
- </else-if>
- <else-if type="review" match="any">
- <text value="review"/>
- </else-if>
- <else>
- <text value="standard"/>
- </else>
- </choose>
- </group>
- </macro>
- <citation collapse="citation-number">
- <sort>
- <key variable="citation-number"/>
- </sort>
- <layout delimiter=",">
- <group prefix="{{jats}}&lt;xref ref-type=&quot;bibr&quot; rid=&quot;{{/jats}}" suffix="{{jats}}&lt;/xref&gt;{{/jats}}">
- <text variable="citation-number" prefix="{{jats}}ref-{{/jats}}" suffix="{{jats}}&quot;&gt;{{/jats}}"/>
- <text variable="citation-number"/>
- </group>
- </layout>
- </citation>
- <bibliography sort-separator="">
- <layout>
- <group prefix="{{jats}}&lt;ref {{/jats}}" suffix="{{jats}}&lt;/ref&gt;{{/jats}}">
- <text macro="citation-number"/>
- <group prefix="{{jats}}&lt;element-citation{{/jats}}" suffix="{{jats}}&lt;/element-citation&gt;{{/jats}}">
- <text macro="publication-type"/>
- <text macro="author" prefix="{{jats}}&lt;person-group person-group-type=&quot;author&quot;&gt;{{/jats}}" suffix="{{jats}}&lt;/person-group&gt;{{/jats}}"/>
- <text macro="title" />
- <text macro="container-title"/>
- <text macro="editor"/>
- <text macro="publisher"/>
- <text macro="date"/>
- <text macro="location"/>
- <text macro="link"/>
- </group>
- </group>
- </layout>
- </bibliography>
-</style>
-
diff --git a/tests/mhra.expected.native b/tests/mhra.expected.native
index a770277..4b55f55 100644
--- a/tests/mhra.expected.native
+++ b/tests/mhra.expected.native
@@ -15,7 +15,7 @@ Pandoc (Meta {unMeta = fromList [("csl",MetaInlines [Str "tests/mhra.csl"]),("li
,Para [Str "Now",Space,Str "some",Space,Str "modifiers.",Note [Para [Str "Like",Space,Str "a",Space,Str "citation",Space,Str "without",Space,Str "author:",Space,Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 0, citationHash = 19}] [Emph [Str "First",Space,Str "Book"],Str ""],Str ",",Space,Str "and",Space,Str "now",Space,Str "Doe",Space,Str "with",Space,Str "a",Space,Str "locator",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [Space,Str "p.",Space,Str "44"], citationMode = SuppressAuthor, citationNoteNum = 0, citationHash = 20}] [Str "\8216Article\8217,",Space,Str "33\8211\&34",Space,Str "(p.",Space,Str "44)"],Str "."]]]
,Para [Str "With",Space,Str "some",Space,Str "markup",Str ".",Cite [Citation {citationId = "item1", citationPrefix = [Emph [Str "see"]], citationSuffix = [Space,Str "p.",Space,Strong [Str "32"]], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 21}] [Note [Para [Emph [Str "See"],Space,Str "Doe,",Space,Emph [Str "First",Space,Str "Book"],Str ",",Space,Str "p.",Space,Str "32."]]]]
,Header 1 ("references",["unnumbered"],[]) [Str "References"]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item2",[],[])
[Para [Str "Doe,",Space,Str "John,",Space,Str "\8216Article\8217,",Space,Emph [Str "Journal",Space,Str "of",Space,Str "Generic",Space,Str "Studies"],Str ",",Space,Str "6",Space,Str "(2006),",Space,Str "33\8211\&34."]]
,Div ("ref-item1",[],[])
diff --git a/tests/no-author.expected.native b/tests/no-author.expected.native
index ec909c2..b344b62 100644
--- a/tests/no-author.expected.native
+++ b/tests/no-author.expected.native
@@ -1,6 +1,6 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "A"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item2"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "B"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item3"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "C"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item4"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "D"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item5"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "E"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Magazine"]),("id",MetaInlines [Str "item4"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "D"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Newspaper"]),("id",MetaInlines [Str "item5"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "E"]),("type",MetaInlines [Str "article-magazine"])]),MetaMap (fromList [("container-title",MetaInlines [Str "Newspaper"]),("id",MetaInlines [Str "item6"]),("issued",MetaMap (fromList [("year",MetaString "2012")])),("title",MetaInlines [Str "Title",Space,Str "F"]),("type",MetaInlines [Str "article-magazine"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [Str "p.",Space,Str "3"], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "(",Emph [Str "Magazine"],Space,Str "2012a,",Space,Str "3)"],Str ",",Space,Cite [Citation {citationId = "item2", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 2}] [Str "(",Emph [Str "Magazine"],Space,Str "2012b)"],Str ",",Space,Cite [Citation {citationId = "item3", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 3}] [Str "(",Emph [Str "Magazine"],Space,Str "2012c)"],Str ",",Space,Cite [Citation {citationId = "item4", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 4}] [Str "(",Emph [Str "Magazine"],Space,Str "2012d)"],Str ",",Space,Cite [Citation {citationId = "item5", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 5}] [Str "(",Emph [Str "Magazine"],Space,Str "2012e)"],Str ",",Space,Cite [Citation {citationId = "item6", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 6}] [Str "(",Emph [Str "Newspaper"],Space,Str "2012)"]]
-,Div ("refs",["references"],[])
+,Div ("refs",["references","hanging-indent"],[])
[Div ("ref-item1",[],[])
[Para [Emph [Str "Magazine"],Str ".",Space,Str "2012a.",Space,Str "\8220Title",Space,Str "A,\8221",Space,Str "2012."]]
,Div ("ref-item2",[],[])
diff --git a/tests/number-of-volumes.expected.native b/tests/number-of-volumes.expected.native
index afe2b16..e096d6e 100644
--- a/tests/number-of-volumes.expected.native
+++ b/tests/number-of-volumes.expected.native
@@ -1,3 +1,5 @@
Pandoc (Meta {unMeta = fromList [("references",MetaList [MetaMap (fromList [("author",MetaMap (fromList [("family",MetaInlines [Str "Author"]),("given",MetaList [MetaInlines [Str "Al"]])])),("id",MetaInlines [Str "item1"]),("issued",MetaMap (fromList [("year",MetaString "2013")])),("language",MetaInlines [Str "en-US"]),("number-of-volumes",MetaString "2"),("publisher",MetaInlines [Str "Publisher"]),("publisher-place",MetaInlines [Str "Location"]),("title",MetaInlines [Str "Title"]),("type",MetaInlines [Str "book"])])])]})
[Para [Cite [Citation {citationId = "item1", citationPrefix = [], citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 0, citationHash = 1}] [Str "Author",Space,Str "(2013)"]]
-,Div ("refs",["references"],[]) [Div ("ref-item1",[],[]) [Para [Str "Author,",Space,Str "Al.",Space,Str "2013.",Space,Emph [Str "Title"],Str ".",Space,Str "2",Space,Str "vols.",Space,Str "Location:",Space,Str "Publisher."]]]]
+,Div ("refs",["references","hanging-indent"],[])
+ [Div ("ref-item1",[],[])
+ [Para [Str "Author,",Space,Str "Al.",Space,Str "2013.",Space,Emph [Str "Title"],Str ".",Space,Str "2",Space,Str "vols.",Space,Str "Location:",Space,Str "Publisher."]]]]