mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
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.
30 lines
763 B
Markdown
30 lines
763 B
Markdown
```
|
|
% 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>!@#$%^&*(){}|~?+-',."<>[]\`</simpara>
|
|
</entry>
|
|
<entry align="left" valign="top">
|
|
<simpara>col 2</simpara>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
^D
|
|
[cols=",",options="header",]
|
|
|===
|
|
|h1 |h2
|
|
|!@#$%^&*()\{}\|~?+-',."<>[]\` |col 2
|
|
|===
|
|
```
|