From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30815 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Unsupported extension in Commonmark_x resulting in alternative output Date: Thu, 23 Jun 2022 16:13:10 +0200 Message-ID: <87zgi31n35.fsf@zeitkraut.de> References: <7F040099-8F18-41C2-BB05-0A4658311704@coolfortheblind.dk> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30167"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBYXL2GKQMGQERUXDIHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 23 16:17:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f57.google.com ([209.85.128.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4Ndu-0007ad-2r for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Jun 2022 16:17:10 +0200 Original-Received: by mail-wm1-f57.google.com with SMTP id r205-20020a1c44d6000000b003a02cd754d1sf452182wma.9 for ; Thu, 23 Jun 2022 07:17:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655993829; cv=pass; d=google.com; s=arc-20160816; b=hoX1UQ0GKR/uV/QGZjOHZC0A9rLCPhXwRA2F6Bf2Tap+Pn+0zYgRcOX3HK1eQGOz20 8jy8fTqndbms/yBQ0aMyTeRY2K/PbNSjiHl7v2XCN/L1GezkgjdhEKy+expymW9sPOn+ HeIP1c0Mcv1jIrrWcoznpAehNjYQ+KrpwPVmefiMXGNoupls+58WfMYeZdyfoXjKXT2d y6AFaGMmCavd9Fh2mAoVs2dWDK/uQqEIUPoYaZ0nkxT463XS+kwAV8lOgayI6DX95q4v MTOa7MyoYzesFcGJVWPuhkMcivwNex9ABJnAA+ntLBGXFDrIMWIZvf8RrSepZJGU6fEx Y+gQ== 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:mime-version:message-id :in-reply-to:date:subject:to:from:references:sender:dkim-signature; bh=3Gn1w5YjhMqUPl0Ns0GGMxUISIwhY8xoFwKAaU4yxPI=; b=oddCga2YqUQHqZNFi4KN9eoEHC0HZPIrjkuVBLLh+LJuiGTF5cJbQx2XJv3025SVN3 SKbKTu6M5X2I5husXwpKH1Qq7MMLSP+XuUyZy6ij/rCXq0WBegb13ljnJKlhMkg7sG+a XCEYBzyJ+KYL8Fc2GcdpRZEA4s65u1bGAcXlCsQmt4NT9H0vTg8D1FUaIl3mMu1XwjCW LVUHnN5X4ooppjzc71gMtmPXYQMX8WR4Lzoc4Ok+bRwu3m0cgsg/tCzmkdUYzroggf7O M4MJ+7zdoJGYzhUPRAtf0c1srJ6jW56AQVaF8HJXAZLT52zla1acXJkj/emDup1FMcRO 3ncg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:references:from:to:subject:date:in-reply-to:message-id :mime-version: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=3Gn1w5YjhMqUPl0Ns0GGMxUISIwhY8xoFwKAaU4yxPI=; b=jjezO8f5vJBi3GtDvDV1slW2ypR4dTEJtGIdZmNgq9lpWObACOYBZFQkjS3Rxo45k0 HkQKux/A0XPh60WQtNXWgi+Ade3kZULxOc0NNnIx5l2coiiPhHxq4BKNqviVfMFfCvAO i9H9JTE8q7Afw5nprbA4KocJqAbEVMib99i9lnJ4zhOIUuOw9uUjK+4UQ7xkC/mc8vbA 42wtcpGuPHBLGGTeOAQ/3cr599fDbS2MwMhDFduXQZVof/YLz4maannKHBpycRC9wvAx MJt96G25T6gy0+RemGyIwalnifGpkKoUwhuyE3LjqO/ynJZiBQNnk5YOoMJFL4E736k/ uuPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:references:from:to:subject:date :in-reply-to:message-id:mime-version: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=3Gn1w5YjhMqUPl0Ns0GGMxUISIwhY8xoFwKAaU4yxPI=; b=d+2b8V7acLM6hIt4rylIyhQNjFJ5O8xB7bhhAXre6ryF0a5m8sPt2Rq89mbpNF/Yfd UCoojmXsNiC5zbpNxnEjGdVAq55i0admzMgZTBegR8k6bdv+1vj9JnYqUuPVIRGc4012 D2QmdAAgmTm+sTqLAw0gsa7Z/i2ra89Be2nLZDItTjm4DTGRACm8o682Q2Gi3afmcOsF qp5cPl2glryL7mvORVUyBlX0Ir87B7m9cCIHuO9LLZqfZ9+g0pwRFD+PvPo6ZWvzVI+4 UFcFgVuWwiiyHXdNImrNoR9YMMePbKsTECfmC0GR9VnzQbJZVuhC+p53ZPgZzJuE4MSk Eyhg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+MtpX0NCkcz0kXEZGtNsCvkbQhrwuBcLefKfJ5BzasvWENlq/9 ufYr8UoFmJrCOGfq62cQSMs= X-Google-Smtp-Source: AGRyM1v0vTk31EEvpmD/z3+zXC+hVoGeBKmcPaDFGEFWwHYWoOyMcXWR+WLY2R2LADJtNuoRwmR9+A== X-Received: by 2002:a5d:5847:0:b0:218:5319:f4e3 with SMTP id i7-20020a5d5847000000b002185319f4e3mr8807848wrf.500.1655993829628; Thu, 23 Jun 2022 07:17:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:648e:0:b0:217:c8b4:52e3 with SMTP id o14-20020a5d648e000000b00217c8b452e3ls12074842wri.1.gmail; Thu, 23 Jun 2022 07:17:05 -0700 (PDT) X-Received: by 2002:a5d:4592:0:b0:21b:8e50:7fb9 with SMTP id p18-20020a5d4592000000b0021b8e507fb9mr8416470wrq.428.1655993825415; Thu, 23 Jun 2022 07:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655993825; cv=none; d=google.com; s=arc-20160816; b=awAPc94PcDQkZaskXPbt4pA9DJoZyr7WP8GlgwU7dOBFIQT4qoVf326pkRxO7n3bUe HdSAItY6tX3+LTE35YTvU2WG6habkOltiocNl5BiyWEVmfTVfjX7+MhBGiHjXRhMCa4Z 7OEkRWtW0/AjHMZI08MNoHZdMuJkPS5iH0nRsug29pms5iK2tTRe2Gtoyb6+JiTPaN6R w1aBnPz0uI5VYv7OEsqcrP28K1SN133vy3XsNN7wFYy448iCGq6CbBMcE83J3Z1elu1S 2DVnowDgbxGyVuj1ex+heO3jFXHr7WHvjWDPLQTnpZOdwAfVd3uOvntNehUKjbH4+1I3 +W2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:to:from:references; bh=vqugsXIwY8WpkM1C/M4u0IlLb+O+rJ3PpvBbePDV2cU=; b=I4Av+KBQHKcF6AvP8/ogrnx20K74oqoIpN8xyvZt3jcreD4FZbitJhqRjRsfxsVQjx wmCFLp1TUwSX7AT+ZdzECZHD7a2f+oJxstKy7r3q8/XhCQW7ycGH5Cx+uTBY2XerT/xu pNf0aUtI1mSd0+eKwzBkNoUwkxPo3scwS21Vk9dYG/bii2399IdIp3OmlnajKZtyc+48 Nt/Y3KJPHlZO68LBGPdLFV3m8vCrXZRhTyo56AJQ4vYCSnTDwEQvC3mGAdVuGsE5w53Y avP3ng42oC/fdaC/P9lLOthkR9HaRrVUbtPKwbyH57gPkog2KfAgVHGURh5lZjTBIUk5 K06Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [2001:67c:2050:0:465::101]) by gmr-mx.google.com with ESMTPS id c17-20020a7bc011000000b0039c4133ae38si167111wmb.2.2022.06.23.07.17.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 07:17:05 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) client-ip=2001:67c:2050:0:465::101; Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (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-101.mailbox.org (Postfix) with ESMTPS id 4LTMl30xbgz9sS6 for ; Thu, 23 Jun 2022 16:17:03 +0200 (CEST) In-reply-to: X-Rspamd-Queue-Id: 4LTMl30xbgz9sS6 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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:30815 Archived-At: Obligatory "a Lua filter can help" post: function LineBreak () return pandoc.RawInline('markdown', '\\\n') end Save the above to a file and pass it to pandoc via the --lua-filter command line parameter. John MacFarlane writes: > This is a bit tricky. escaped_line_breaks isn't really an > extension for commonmark, because it is part of the core spec. > The writer uses two spaces instead; both are supported according > to the spec, and the writer has to make a choice. > > Thomas Byskov Dalgaard writes: > >> Hi! >> >> Think I have found something that is unexpected behaviour when using the commonmark_x format with extensions. >> >> Here is the case. >> >> I want to convert from Markdown to Commonmark_x. I have read the Commonmark >> spec, and from here hard line breaks can be inserted either by two spaces or a >> backslash at the end of a line inside a paragraph. >> >> This is fine when I write my Markdown document, but when I convert all >> backslashes are removed and replaced with two spaces. >> >> I have tried to enable the extension escaped_line_breaks but Pandoc says that this extension is not supported. >> >> Why is it that Pandoc allows backslashes to be used but not allowed when converting? >> >> Best regards Thomas -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124