From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28608 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Guillem Marpons' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Announcing asciidoc-hs, an AsciiDoc parser in Haskell Date: Wed, 16 Jun 2021 16:15:57 +0200 Message-ID: <1cee20e4-c8f5-9f6f-9903-a2ae35c1dc28@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20791"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCRMJJNTSUBBBJ4PVCDAMGQEZJ4WWAQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 16 16:16:11 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f184.google.com ([209.85.208.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltWKw-0005Cq-80 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Jun 2021 16:16:10 +0200 Original-Received: by mail-lj1-f184.google.com with SMTP id h6-20020a2e85c60000b029014fcff4ccdcsf1324973ljj.11 for ; Wed, 16 Jun 2021 07:16:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623852969; cv=pass; d=google.com; s=arc-20160816; b=Ii5VPHE8b6LrTkV68zmUG++tZlM/pNraecibr1D326zS6si8gCTi+GRA4z+3YJKiAf 6+s614KZ5UVTHBf+pU3tMEDuBlG5URr1HEgnLQglJspqu1mkJHhMYxmSFzNiaZQtm6bi RxCGJ0bxAy+eDldU2tSlKw/FEyDWgMRpqWchuwb57Gq4o5YxJ3UN76G/RcIA0MRgHmg4 84/OrZPPXKY2Ca+t6iWRVfRkYwwpM4A6mZ/6dN/CQQxC3o3YwKmqCBBBM9ErOoT5IPJp ju3nONuvMa7j9ke5uePt7mueJn6ZghAfeA0Vlcd1d9UwwRwDEYFfHFWYS/5RD+fwnXf5 Zu/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-language :mime-version:date:message-id:to:subject:from:dkim-signature; bh=r4yjn8ihXMGSgS7tf4/WwEQfBusZB3jo6b5qTwtHkgM=; b=eghDVbVjnzfbfVrNzPrVVkGvT8XzoN9lPTo7IiTTMrNtwvcHPK0YZM9bY/eXEaGJhu RztV5fsMnQ7pCqqXwa2oYsPuhLQ/pcpcnMnO+EXzrmsNIcGIZ8mAIuk2PF1VNZWky6tO aMeJMeSbNZgYjOoEKCdGXa/dryCbQZUpcsIOx0PZbdr2Sy2yzNDeB0JG1lLsAHqVBY0M hKVuqmRGVyyKT8HlD/Z+MHFnAeoKWfj4bfKgjjWbYbAO42U2SvUzKm6/9sqX8gS4DJJ1 UdNsJkDZ1NH8jOHaBIy81BZuHfhQfYM+k5xqSvpk1ggRlvca18fIHUZVXNP3RFuACxTj nh4g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wlDgUy6I; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oPVADAyS; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:103 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=from:subject:to:message-id:date:mime-version:content-language :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=r4yjn8ihXMGSgS7tf4/WwEQfBusZB3jo6b5qTwtHkgM=; b=VIeKMOgUTEpocrjqsEnBRaDt+mNQ9XWGkR4YE57cQ9Fl9LfVOvCJezslvLYOX3ub6O y22gi+7iLH4XFS9v3s6VFbW9UDrYvSqNlox1yPQP6b6j6Zc+y9nO9DWYZgZAqi+Wew6B ZnrO0ASpQhvI8DgGV6wDogrAz5sF7QszQNo3PNpp3cmRcBKpgt3odBjus/kKkssFMGb6 NW6uVthTzYZX0JofAobTS6n9qRkhvSw4gqGBdQ5Z+JWaptsZ+s7d4Y/FJcfzDC691z9v uKvQVDQUNbDuAdrYYSnjMSbkw3cohT6iI35Z6OLqnuA3NE6CK+QUQUuc3zJ+fzKHUBFn uhVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:mime-version :content-language:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=r4yjn8ihXMGSgS7tf4/WwEQfBusZB3jo6b5qTwtHkgM=; b=q+/XeYM68p7mos3X53J1UpiBapFT8xANMh6LJDHv1KNp/AZuqUeCIOXHJWjvULdo4T FEaor3cO108Fa1D7B+hyxGv/7hFBiWiZB3CMBEPMhivAz/wCnDNuMMWnrn9pTBtDnA2n SsP3jbq6znQoP/JdEK4OebvKvazwz85IGC33ZAJRtJ242nmuz4Dx1ZpRC66+l64vw9V+ FgMUt2sHTcqau5sZXYDRtmMKmYmcdZG/ld3RAo7uFnxbXC8DU++dwU4fIji1LwpWyTue dwOn952BNqboEUXRxYQOZG92F05s873haR3ZSnJXEU5sSBSX4o0nJ/2rZdHcdYBf0q5T byrQ== X-Gm-Message-State: AOAM530cQ0Lh4oYz2/f5ngE+XcSWDeLm1R9NltiKP1BBP7Mgx8Wqj/iv WYUs9vrtP7rGQkuMIpMZC3w= X-Google-Smtp-Source: ABdhPJwWQRDIA7/r+XUhCZNSEEHJ3Gntrhty7BMeUsSKso5661/2lnIJJSulKvXZN3sZo0Dhw52ZOw== X-Received: by 2002:a05:651c:b1f:: with SMTP id b31mr35450ljr.488.1623852969783; Wed, 16 Jun 2021 07:16:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:bf03:: with SMTP id c3ls635459ljr.10.gmail; Wed, 16 Jun 2021 07:16:06 -0700 (PDT) X-Received: by 2002:a2e:6c09:: with SMTP id h9mr37557ljc.434.1623852966689; Wed, 16 Jun 2021 07:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623852966; cv=none; d=google.com; s=arc-20160816; b=lRJCR6LXe8vycMxkcd7IWTDrQP+5rVUxszgrZGlPUwMKydUDDq+w7wVFudEQFX73NL 3pRZ4G/Q8lnDpG9+a2s9HBmlbYykKOyrmbZMWkVnWAW1Jw+xOtf2apHj4a5DjaN7RYDP iwnfkHkOs7BLIJooKeGwUbCglDQLeozYBXoJy1mKW2Ibw2BlSmPvwcA7HM2EPJoZCs/z yXvyma2V3e6XLCWCBGfpQVwnvpMNhRw2wST4b4PSnW7+WKn0TDXy0tgX6ZhYKsVOCwx/ LYDUd2NkWIY1ivxG7un/PVEIPg8o7xXoMbFg0/W5C+kY3+7Rg8pMOeCycxNRuKd/xqc4 3ZNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:date :message-id:to:subject:from:dkim-signature:dkim-signature; bh=ZgqCHGRHnae64hG08U7moSK4W8L9PBmBIlNSC5HhttM=; b=apFYI+miKm40voOtd2E6EK1Toxp6cBqos5b+aT9p3dFa8RRKCQ1H4fY3DOvLiI4SjP MLjj2Z8bl310l2LJmwfcLRbCwruc5OSv5Wz9zsoFgewI3OO+IFen18D2bFHgxXlvFvUR oz3pSFpxswAexzao/zQtjNbbmR2P9R3QXKDTzXNf4KJUxvD3F6uq20sHk4EU/8Hl8R8s vyeOVLVcPL8nAG8g12SqaxlGG2UDpki+5/KRlH8KwMoGov5yZUQ20OmrEdXEi2gJipbc gvk/ZadG40QhfbaAPjHvxd8rytCW6pRAkbD3t/+Ym5n+7fNkosV3jqrSKifFEP9PmwG5 Hgxg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wlDgUy6I; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oPVADAyS; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:103 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Original-Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org. [2001:67c:2050::465:103]) by gmr-mx.google.com with ESMTPS id x23si85173lfd.5.2021.06.16.07.16.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 07:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:103 as permitted sender) client-ip=2001:67c:2050::465:103; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4G4nKf10fDzQk2R for ; Wed, 16 Jun 2021 16:16:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id EfvFxGkAzj3d for ; Wed, 16 Jun 2021 16:15:59 +0200 (CEST) Content-Language: en-US X-Rspamd-Score: -7.27 / 15.00 / 15.00 X-Rspamd-Queue-Id: DA3121802 X-Rspamd-UID: 969d19 X-Original-Sender: gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=wlDgUy6I; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=oPVADAyS; spf=pass (google.com: domain of gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050::465:103 as permitted sender) smtp.mailfrom=gmarpons-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org X-Original-From: Guillem Marpons Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28608 Archived-At: I'm pleased to finally post here my attempt at an AsciiDoc parser and processor in Haskell: https://github.com/gmarpons/asciidoc-hs It is meant to be both a library that some day could be integrated as a Pandoc dependency (similarly to commonmark-hs) and a separated executable. My vision for the executable is that, in addition to generate Pandoc JSON, it can be used to generate AsciiDoc (for source-to-source transformations) and support other use cases needed by IDEs. There's still a lot of work to do, but I'm reasonably confident this time we can finally get AsciiDoc input support for Pandoc. I've tried to explain in a blog post the context in which this project has been developed (there's an ongoing standardization effort for AsciiDoc), the difficulties I've found, and how I've resolved them: https://www.tweag.io/blog/2021-06-15-asciidoc-haskell-pandoc/ Contributions are very welcome! -- Guillem