pandoc/test/command/pandoc-citeproc-371.md
Aner Lucero f63b76e169 Markdown writer: default to using ATX headings.
Previously we used Setext (underlined) headings by default.
The default is now ATX (`##` style).

* Add the `--markdown-headings=atx|setext` option.
* Deprecate `--atx-headers`.
* Add constructor 'ATXHeadingInLHS` constructor to `LogMessage` [API change].
* Support `markdown-headings` in defaults files.
* Document new options in MANUAL.

Closes #6662.
2020-11-14 21:33:32 -08:00

615 B

% pandoc --citeproc -t markdown-citations
---
references:
- author:
  - family: Doe
    given: Jane
  id: item1
  status: in press
  title: Title one
  type: book
- author:
  - family: Doe
    given: Jane
  id: item2
  issued:
  - year: 2018
  title: Title two
  type: book
---

Foo [@item2; @item1].

References {#references .unnumbered}
==========
^D
Foo (Doe 2018, in press).

# References {#references .unnumbered}

::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-item2 .csl-entry}
Doe, Jane. 2018. *Title Two*.
:::

::: {#ref-item1 .csl-entry}
---------. In press. *Title One*.
:::
:::