Files
reptee c660bd3419 Add BBCode writer (#11242)
`bbcode` is now supported as an output format, as well as variants
`bbcode_fluxbb` (FluxBB), `bbcode_phpbb` (phpBB), `bbcode_steam` (Hubzilla),
`bbcode_hubzilla` (Hubzilla), and `bbcode_xenforo` (xenForo).

[API change]
Adds a new module Text.Pandoc.Writers.BBCode, exporting a number of functions.
Also exports `writeBBCode`,  `writeBBCodeSteam`, `writeBBCodeFluxBB`,
`writeBBCodePhpBB`, `writeBBCodeHubzilla`, `writeBBCodeXenforo` from
Text.Pandoc.Writers.
2025-11-05 12:49:46 +01:00

61 lines
2.1 KiB
Plaintext

Simple table with caption:
Demonstration of simple table syntax.
[table]
[tr][th]Right[/th][th]Left[/th][th]Center[/th][th]Default[/th][/tr]
[tr][td]12[/td][td]12[/td][td]12[/td][td]12[/td][/tr]
[tr][td]123[/td][td]123[/td][td]123[/td][td]123[/td][/tr]
[tr][td]1[/td][td]1[/td][td]1[/td][td]1[/td][/tr]
[/table]
Simple table without caption:
[table]
[tr][th]Right[/th][th]Left[/th][th]Center[/th][th]Default[/th][/tr]
[tr][td]12[/td][td]12[/td][td]12[/td][td]12[/td][/tr]
[tr][td]123[/td][td]123[/td][td]123[/td][td]123[/td][/tr]
[tr][td]1[/td][td]1[/td][td]1[/td][td]1[/td][/tr]
[/table]
Simple table indented two spaces:
Demonstration of simple table syntax.
[table]
[tr][th]Right[/th][th]Left[/th][th]Center[/th][th]Default[/th][/tr]
[tr][td]12[/td][td]12[/td][td]12[/td][td]12[/td][/tr]
[tr][td]123[/td][td]123[/td][td]123[/td][td]123[/td][/tr]
[tr][td]1[/td][td]1[/td][td]1[/td][td]1[/td][/tr]
[/table]
Multiline table with caption:
Here's the caption. It may span multiple lines.
[table]
[tr][th]Centered Header[/th][th]Left Aligned[/th][th]Right Aligned[/th][th]Default aligned[/th][/tr]
[tr][td]First[/td][td]row[/td][td]12.0[/td][td]Example of a row that spans multiple lines.[/td][/tr]
[tr][td]Second[/td][td]row[/td][td]5.0[/td][td]Here's another one. Note the blank line between rows.[/td][/tr]
[/table]
Multiline table without caption:
[table]
[tr][th]Centered Header[/th][th]Left Aligned[/th][th]Right Aligned[/th][th]Default aligned[/th][/tr]
[tr][td]First[/td][td]row[/td][td]12.0[/td][td]Example of a row that spans multiple lines.[/td][/tr]
[tr][td]Second[/td][td]row[/td][td]5.0[/td][td]Here's another one. Note the blank line between rows.[/td][/tr]
[/table]
Table without column headers:
[table]
[tr][td]12[/td][td]12[/td][td]12[/td][td]12[/td][/tr]
[tr][td]123[/td][td]123[/td][td]123[/td][td]123[/td][/tr]
[tr][td]1[/td][td]1[/td][td]1[/td][td]1[/td][/tr]
[/table]
Multiline table without column headers:
[table]
[tr][td]First[/td][td]row[/td][td]12.0[/td][td]Example of a row that spans multiple lines.[/td][/tr]
[tr][td]Second[/td][td]row[/td][td]5.0[/td][td]Here's another one. Note the blank line between rows.[/td][/tr]
[/table]