mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
adba9d460c
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.
1.4 KiB
1.4 KiB
% pandoc -f markdown -t asciidoc
[](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
[](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
[](http://www.apache.org/licenses/LICENSE-2.0)