Files
pandoc/test/command/8437.md
John MacFarlane adba9d460c Make modern AsciiDoc the target for asciidoc.
The AsciiDoc community now regards the dialect parsed by `asciidoctor`
as the official AsciiDoc syntax, so it should be the target of our
`asciidoc` format.

Closes #8936.

The `asciidoc` output format now behaves like `asciidoctor` used to.
`asciidoctor` is a deprecated synonynm. For the old `asciidoc` behavior
(targeting the Python script), use `asciidoc_legacy`.

The templates have been consolidated. Instead of separate
`default.asciidoctor` and `default.asciidoc` templates, there is
just `default.asciidoc`.

Text.Pandoc.Writers.AsciiDoc API changes:

- `writeAsciiDoc` now behaves like `writeAsciiDoctor` used to.
- `writeAsciiDoctor` is now a deprecated synonym for `writeAsciiDoc`.
- New exported function `writeAsciiDocLegacy` behaves like
  `writeAsciDoc` used to.
2023-07-05 09:10:36 -07:00

45 lines
1.4 KiB
Markdown

```
% pandoc -f markdown -t asciidoc
[![alt](https://img.shields.io/badge/License-Apache%202.0-blue.svg "title")](http://www.apache.org/licenses/LICENSE-2.0)
^D
http://www.apache.org/licenses/LICENSE-2.0[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[alt,title="title"]]
```
```
% pandoc -f markdown -t docbook
[![alt](https://img.shields.io/badge/License-Apache%202.0-blue.svg "title")](http://www.apache.org/licenses/LICENSE-2.0)
^D
<para>
<link xlink:href="http://www.apache.org/licenses/LICENSE-2.0"><inlinemediaobject>
<imageobject>
<objectinfo>
<title>title</title>
</objectinfo>
<imagedata fileref="https://img.shields.io/badge/License-Apache%202.0-blue.svg" />
</imageobject>
<textobject>
<phrase>alt</phrase>
</textobject>
</inlinemediaobject></link>
</para>
```
```
% pandoc -f docbook -t markdown
<para>
<link xlink:href="http://www.apache.org/licenses/LICENSE-2.0"><inlinemediaobject>
<imageobject>
<objectinfo>
<title>title</title>
</objectinfo>
<imagedata fileref="https://img.shields.io/badge/License-Apache%202.0-blue.svg" />
</imageobject>
<textobject>
<phrase>alt</phrase>
</textobject>
</inlinemediaobject></link>
</para>
^D
[![alt](https://img.shields.io/badge/License-Apache%202.0-blue.svg "title")](http://www.apache.org/licenses/LICENSE-2.0)
```