Files
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

763 B

% pandoc -f docbook -t asciidoc
<informaltable frame="all" rowsep="1" colsep="1">
    <tgroup cols="1">
        <thead>
            <row>
                <entry align="left" valign="top">h1</entry>
                <entry align="left" valign="top">h2</entry>
            </row>
        </thead>
        <tbody>
            <row>
                <entry align="left" valign="top">
                    <simpara>!@#$%^&amp;*(){}|~?+-',."&lt;&gt;[]\`</simpara>
                </entry>
                <entry align="left" valign="top">
                    <simpara>col 2</simpara>
                </entry>
            </row>
        </tbody>
    </tgroup>
</informaltable>
^D
[cols=",",options="header",]
|===
|h1 |h2
|!@#$%^&*()\{}\|~?+-',."<>[]\` |col 2
|===