Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2021 01:42:26 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        freebsd-doc@freebsd.org
Subject:   Is here common source format to produce mdoc and MarkDown?
Message-ID:  <1c54f0c2-c5fd-b266-a760-ae4c374a7e84@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

  I understand, that my question is not about FreeBSD documentation exactly, but close enough. If I'm not right, sorry.

  I want to have both proper man page in mdoc format and fancy README in MarkDown for github & ko for my project. Content of these documents must be virtually the same and I don't want to edit same text twice in different formats each time when I want to change it.

  Is here any source format to render both MarkDown and mdoc?

  I understand, that mdoc is semantic format (it has "options" and "arguments" and such), and MarkDown is not...

  Maybe, mdoc to MarkDown converter? It is not best way, as mdoc is very tedious to edit, but better than nothing.

  Thank you!

-- 
// Lev Serebryakov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1c54f0c2-c5fd-b266-a760-ae4c374a7e84>