pandoc/test/command/pandoc-citeproc-160.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

44 lines
580 B
Markdown

```
% pandoc --citeproc -t markdown-citations
---
csl: command/issue160.csl
references:
- author:
- family: Doe
given: Jane
citation-label: Jane11
id: item1
issued:
year: 2011
title: A book
type: book
---
No citation-label
-----------------
Foo [@item1].
Expected
--------
> Foo \[Jane11\].
>
> \[Jane11\] Jane Doe. A book. 2011.
^D
## No citation-label
Foo \[Jane11\].
## Expected
> Foo \[Jane11\].
>
> \[Jane11\] Jane Doe. A book. 2011.
::: {#refs .references .csl-bib-body}
::: {#ref-item1 .csl-entry}
\[Jane11\] Jane Doe. A book. 2011.
:::
:::
```