Package: mandoc
Version: 1.14.6-4

mandoc -Tmarkdown crashes when tbl is used.

Here is a minimal example:

-- 8< --
.Dd July 16, 2026
.Dt TBL_EXAMPLE 7
.Os
.Sh NAME
.Nm tbl_example
.Nd example of tbl usage
.Sh DESCRIPTION
Here is a usage example of
.Xr tbl 7 :
.Pp
.TS
tab(:);
lb lb lb
l l l.
Heading 1:Heading 2:Heading
1:2:3
a:b:c
.TE
-- 8< --

Running `mandoc -Tmarkdown` on it results in an assertion failure:

mandoc: mdoc_markdown.c:264: md_act: Assertion `tok >= MDOC_Dd && tok <= MDOC_MAX' failed.
    Aborted

For comparison, `mandoc -Tman` outputs "The -T man output mode does not
support tbl(7) input." when tbl is used, but otherwise does not crash.
In case proper support is needed, many Markdown translators recognize
the table syntax specified by

    https://github.github.com/gfm/#tables-extension-

but it is neither in John Gruber's specification nor in CommonMark.

I am using Debian GNU/Linux 13.6 in WSL.

Reply via email to