From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from mandoc.bsd.lv (bsd.lv [66.111.2.12]) by inbox.vuxu.org (Postfix) with ESMTP id 4650320241 for ; Tue, 28 Jan 2025 08:04:50 +0100 (CET) Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 72cdd65c for ; Tue, 28 Jan 2025 07:04:49 +0000 (UTC) Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 20c98b48 for ; Tue, 28 Jan 2025 07:04:49 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id 971EC1140169 for ; Tue, 28 Jan 2025 02:04:48 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Tue, 28 Jan 2025 02:04:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jklol.net; h=cc :content-type:date:date:from:from:in-reply-to:message-id :reply-to:subject:subject:to:to; s=fm2; t=1738047888; x= 1738134288; bh=CgrQKtX2zX/GfpsumKjFNI2shTeWtzy2MP2juPZvyds=; b=d GbFpSC9s8ZWX4tdwtK9rBxYZUK1gxSJEt01dGvxoR4N6lhNGLwCeQVepKAlfg7WY /hVcrTr4n7p8WQ2DbR8bDF6bIRe4zT1Tm3RugG7FOE+HUXjQQuXGnPjyR/YH2dIi NGTpy2Ogom25pEGPvcCspNzkxS0rifzXvel7MYbb5FF8r07d92WMFZBFG32rmChB KU88SlK2KI4YyEQyK/23LF8SENCT9M4BQsMsgYE7whog9TrEOkhLQyE2nIY9lKlE Spn8tnVF4SIwAmM2GnIxYwaQGIvjj0uerpFAFwOUmMcz8knCbBlwIzVSeimfcvIA pNaaLMHV/YNmyvQ4DOmIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1738047888; x=1738134288; bh=CgrQKtX2zX/GfpsumKjFNI2shTeW tzy2MP2juPZvyds=; b=fWUhYzH0AUtgIbHgbSCgEY3tRGHfmrOD80hHVc7wefYx coA3UOzuarTBDp032viNL0B+nCGlWOj+6do+6ySQlcRMAyxtlBSq3LibyNSEJdWO KKlmeZj6f7brYrgyZWSkrQ8Il3KE8Exh8KjFi+YYPPOS3+AGuGCV3g/BGLl+n79p wBV2x9DYJY6d++4lLGUzYfaIJxqjOEc4zzQA+uh1ggzIZFUC1Mpy7GmzSHtnKlFh AVHlKxtlEFj21kVF39pzO2+txIoF2ApxodBuMMvNGfvnVAjtoA1CJw4QzpLaPLFF FhNBHHOV3d2AdMo36v636xhlqP0577ZuSqCaeIo+Iw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgudehgeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffvf fuhffkfgestddtredttdertdenucfhrhhomhepgfhvrghnucfuihhlsggvrhhmrghnuceo vghvrghnsehjkhhlohhlrdhnvghtqeenucggtffrrghtthgvrhhnpeeguedukefgheefke dviefhfefgveegkeffffdtfedvueegtdetfeetkefgvdegjeenucffohhmrghinhepphgr nhguohgtrdhorhhgpdguuhgtkhhrrggssghithdrthgvtghhnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghvrghnsehjkhhlohhlrdhnvght pdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguih hstghushhssehmrghnughotgdrsghsugdrlhhv X-ME-Proxy: Feedback-ID: iba8c40ff:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 28 Jan 2025 02:04:47 -0500 (EST) Date: Mon, 27 Jan 2025 23:04:46 -0800 To: discuss@mandoc.bsd.lv Subject: pandoc now supports mdoc(7) input From: Evan Silberman Message-Id: <39RAST4PH9CF9.248OVT065QPA7@silby.fyi> User-Agent: mblaze/1.2 X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv hi all, I contributed an mdoc(7) reader to pandoc (https://pandoc.org) which shipped in version 3.6 last month. It was fun to work on and it successfully parses nearly every mdoc-format manual shipping with OpenBSD base into pandoc's internal format, whence it can be converted to any of pandoc's output formats. Since pandoc's internal format is in most relevant aspects less rich than mdoc(7)'s, there's some semantics that are lost in translation, and overall mandoc -T html probably produces more accurate and useful HTML output than pandoc can; on the other hand, you can now use pandoc to, for example, produce reasonably attractive PDFs of mdoc manuals via LaTeX or typst without much configuration, for those who are itching to give their departmental printers a workout and bring back the binder era. I wrote about my experience writing the code (https://duckrabbit.tech/articles/mdoc.html), but for readers of this list I hope mostly that you will take pandoc's mdoc reader for a spin from time to time and let me know by email or submit a Github issue to pandoc if you can get it to produce egregious interpretations (or parse failures) on reasonable mdoc(7) input. (As I discuss in my article I avoided resolving many questions about what to do with unreasonable input.) An mdoc(7) output mode for pandoc is a less promising project because of the limitations of pandoc's internal representation but it's something I might try someday to see if it can produce useful output in some cases. Happy to answer any questions about this project! Evan Silberman -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv