From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32158 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Reagle Newsgroups: gmane.text.pandoc Subject: Re: Reference link support in AST (for Quarto's Visual Editor)? Date: Thu, 9 Feb 2023 09:29:44 -0500 Message-ID: References: <5680a672-b7b0-d7aa-b35b-34693d3b2022@reagle.org> <9A64C448-20CB-4E7B-9739-61AD4730DB89@gmail.com> <7241d44d-dbe4-15f4-c1c5-a46ff6c069da@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39495"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD65ZAVVYEKRBXEGSSPQMGQE3PB3SSA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 09 15:29:54 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f56.google.com ([209.85.166.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQ7vr-000A1p-VA for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Feb 2023 15:29:51 +0100 Original-Received: by mail-io1-f56.google.com with SMTP id n85-20020a6b8b58000000b0073a2fb71d15sf1312743iod.6 for ; Thu, 09 Feb 2023 06:29:51 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1675952990; cv=pass; d=google.com; s=arc-20160816; b=tYSc/te/xoSabd2Go1fcnIuG6neBDb6YtAGN6m6OH2GDvbZGThAoBr7/ay56iC+gF4 tKTtRg4t/iKnyRSxfjrFgMcbl1lsSogiJtVZsT9YCpTsLGK4X7n13QRJ4NtQH7Hk5Kan vv4IxTMlsMenV8Okm0z71gN2OTQ4qma+BQJKcjMABpV302j4VLcP+QQ1noQADrjPo7RO UNWw8BG05eTD/uoD6ialSOY6yAmzwFueD/EBtnOqeA8XKr09VpPfD/nWa55hgtFcdDQY yGwXh+aNQMjUaKCQsThv+b1F5zErfIbhqgJXjj+Hn9STa/F2Bh3S8nxR36orABXyvOLx zmgQ== ARC-Message-Signature: i=3; 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-transfer-encoding :in-reply-to:references:to:from:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=UScj6j8zjnMBLxWfmFkcLQ6XBtvTfkopLBTSNA8TPik=; b=GuulXGdDMRa46JyYf+97OYtFmAP4gn3VOpv+XqUW9w9MpzdgKKzeqM2kAao08xi3Ok U1/AueGgSChZW7HpGaXUQRMAO5oc0earuG13CkKJscDb1Tb5c4ShXzjMYk7ji5Uh3WZw JYwKy0Rrx2pP0ihC4q7xBHwEfwvW/DAbYnRiXoGEDfj20DP6mOSLrOag/J2SC99g+f+r DpWIqH9VprqSAHiiQY9PhSIcTXk08VUyIe682hHia2Q8eqnXD8PHtpdvAm1TyQuiYOya 9mlsNMoCeJr5Syov2CuJttfAS8oFYCCoTvK+O/v9kct0y4W/ddsOnwj7GyI331Y8rBFr 2N1Q== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=RpecKdG7; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.47 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=UScj6j8zjnMBLxWfmFkcLQ6XBtvTfkopLBTSNA8TPik=; b=U9mrWhFeNTR4hx6J121EI87ecvohWxqZZaYHByQDgPsYUdeEFW3euOjZJbfFuSqS5o zwYfPu3jnjbft1GZRlrNQiH6YsvMOGgiKPmBvk5J/R8XUfhHzjvqIJwD43Dmg8tfqHmq 6n0sJfX7Bp1KOqjStqFka5yVKP88i6TbwghtAtMGQLiKbFCZp6Zm/dXKEG22O7UX4jnN pOzB+YE0HYKEDxPLxI7mE23lMUfHXyvwK5U+iTlfJf051pGIQgcCLyATAZ66MQVmz6dE Z93k/z+NZGplcAQEk3d2FJRC3/U5Jlu25ZVoh X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=UScj6j8zjnMBLxWfmFkcLQ6XBtvTfkopLBTSNA8TPik=; b=E9EEH1Lo25MhhFuJb0+u0dy0WU5dYPOVWcP6F77r36d08U1h5CvV0yzuimvwjzztFF RSHlC7mGF2CX3mm56VDyaka89wXV9vteCZSetytXwf+QCIJiaFRbtDECHIr2b8vFc+qc YsYryUZJknvOSy2CXyXPfpBQaEBIckjm+26bg21ZmtslaOkYuyR1WzxUNKuIP65OpK/G A3SUhq9h0UyiJRdt83bot3zsjD3GfqsXISO8pRTgLGLlu42A2q+49mlTI+7u Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWhLK/xqoBM5TzIOKPzDzzoCSbf7ssmPHxQYDD4FjE2vM4d6RYS 4QBVpIlKP2HbLKgxBwyQWEU= X-Google-Smtp-Source: AK7set/yUmDbYe/3UTJRXA9ZSJXVG7sZEMUoZTXa1Lg/ZkdxAZbJWTK9BnNjTFDWgYA5GwTWgi6Hng== X-Received: by 2002:a05:6638:ed4:b0:3bb:cfa1:34a4 with SMTP id q20-20020a0566380ed400b003bbcfa134a4mr6820339jas.50.1675952990754; Thu, 09 Feb 2023 06:29:50 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a92:d286:0:b0:313:e37a:ae52 with SMTP id p6-20020a92d286000000b00313e37aae52ls966660ilp.0.-pod-prod-gmail; Thu, 09 Feb 2023 06:29:48 -0800 (PST) X-Received: by 2002:a05:6e02:12e2:b0:313:fd8f:31ca with SMTP id l2-20020a056e0212e200b00313fd8f31camr6325955iln.3.1675952988235; Thu, 09 Feb 2023 06:29:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675952988; cv=pass; d=google.com; s=arc-20160816; b=tHS+RKCJvXKuE2h1q3P1sh70XwSnCqRvP3JXRQV31vCLrxpOeYPL9clK2KnWl8anGR GfSMbOniJut9U+UvLT2j2ncdiYbm1eLy4tWFrOXd3rVN+cW2ceiIlgfufQntu/vdqv2S 3wRX5wBMG8B+IV56HoDkj9jQKszZV2RT0ToBTFLRfupGfDz5VADvsbePQCr6hzpuJ/f/ EyKXUidDhQ6r0EPzMQVw0+EfUQk140+zO4SoSfmzSzQ8bSqskFdQcz8tA5wYf2Itf4Xi ogXkRIXUROOG3+J81ZxMKsY5OPnAtmEKu151KIA3l32HWdC1Esw0Qhesu6fOF5uRg5hH +vnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=hnCh+amxhIQn7htF5zR5iZeJ1f1naOLCV2MLazSkXa8=; b=mKwoZwXyEgcifyT8ye4AI+Sz5aphzX9EFNssnOmVI7tR/9+AKp1lUhSEAIPuVoxsy5 J1u0q7kWPBQW9EJYYBuiBQulSpuJqa+vIsMovniUvQ9EJdxtLmzuuAlpoyXlCs/CnoqY ibuooHc23sR13d/LZac/6qsNb+W9NWjPrY/M65GE1/6qHfuFjFeVIYDv7BA4CfV//hrm IOJzuiiEKOrLm8xYQs7aMTW5lkxSdkL/INOCVeMOmTVEuVzwfIoTlIhLFJOp0qCk3hzi GGZ7BiNYljWMySiJagTvhK9B02nSoV6dTN9K055/DSXACiLslSBPlTrDCVqwDo9IV1Zz N9DA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=RpecKdG7; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.47 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from cyan.elm.relay.mailchannels.net (cyan.elm.relay.mailchannels.net. [23.83.212.47]) by gmr-mx.google.com with ESMTPS id z9-20020a056638240900b003a7cca5b466si229949jat.2.2023.02.09.06.29.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2023 06:29:47 -0800 (PST) Received-SPF: pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.47 as permitted sender) client-ip=23.83.212.47; X-Sender-Id: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 90B42641B47 for ; Thu, 9 Feb 2023 14:29:46 +0000 (UTC) Original-Received: from az1-ss21.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id EEDD1641CCA for ; Thu, 9 Feb 2023 14:29:45 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675952986; a=rsa-sha256; cv=none; b=wrng5PzicEw9i0oLR1Z7dbr2C3sGoXPLlCrl6TVNTUBXlvDcU0DtKxG1gxOXreirfQ670d adsGfQKAFJy1uo88SxnsggbIYuKyWP+YqnM03TKS6Dm0AIzKX8Xt9yJMaUN+g3swfaxGD/ cyvn2ZqiuNoTv2EYOxGyBCu7vZPNszP9/602cD2wf9BCF1SirTLWmhpd/yariiYWZC3+U0 kTVEbYaAbcCiOawAQK0b9BdMhqg13EkU0z8fOT/kCW5pA39slruawP6kUMhxJMfjV3pw7O kiFgjnZVCXk+7kHnNHZspGY1gvEoBLxmON8gmG8MWIOTkgjvS5JG5pWYnsU1VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1675952986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=hnCh+amxhIQn7htF5zR5iZeJ1f1naOLCV2MLazSkXa8=; b=kHzxR9MYeIlrW+ylZnfhRHT3J7gx+Zlv2L1tj5kydBiPSVY20Zqi2fNRZHEJYVebOOYryN SqeU7eq9jf91Yqd0n5z0+k9Ua7Qu8EQPS58a+bza9v3vdDLACqyIxpdJQA2gNV85QVrrME pSAFIlPlUytRruW2O44KSyt1Yy06G5zRO4zNeZlCGuWGqR3j887abiU/+XltbeZHHexzBn vM3MQgRpa6kMOKOXhAdLESWcP5qCfSSjWOyNYg0k298YAfCo/mi9oh9Jd71Ck9odychLsq q/hHJOzU40JVdvh/LoIn+Jkj3p97cjP+n4Rw27slHTHaR8Cy2LEsRDu4jlE67g== ARC-Authentication-Results: i=1; rspamd-5dc9c5d4f4-xttmn; auth=pass smtp.auth=a2hosting smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-Sender-Id: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-MailChannels-Auth-Id: a2hosting X-Inform-Shade: 557d3d950ff674bd_1675952986300_1032177334 X-MC-Loop-Signature: 1675952986300:975154869 X-MC-Ingress-Time: 1675952986300 Original-Received: from az1-ss21.a2hosting.com (az1-ss21.a2hosting.com [68.66.224.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.103.24.71 (trex/6.7.1); Thu, 09 Feb 2023 14:29:46 +0000 Original-Received: from [129.10.79.208] (port=57979) by az1-ss21.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1pQ7vl-00D9Iv-4l for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 09 Feb 2023 07:29:45 -0700 Content-Language: en-US In-Reply-To: <7241d44d-dbe4-15f4-c1c5-a46ff6c069da-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> X-AuthUser: joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-Original-Sender: joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=RpecKdG7; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.47 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@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:32158 Archived-At: Sorry, I meant "without quotes and labels". On 2/9/23 09:28, Joseph Reagle wrote: > Thank you John. Keeping in mind that pandoc is not a reformatter, I nonet= heless have occasion to want to convert from markdown to markdown and one o= ther nuisance is my (HTML) comments get quoted and labeled as such in the p= rocess; I then can't un-comment them with a single keyboard shortcut in my = editor. Is there a way to keep HTML/markdown comments with quotes and label= ? >=20 > ```{=3Dhtml} > > ``` >=20 > On 2/8/23 12:32, John MacFarlane wrote: >> This is all true, yes.=C2=A0 Pandoc was not really designed as a reforma= tter.=C2=A0 commonmark-hs could be the basis for a more flexible reformatti= ng tool. >> >> Could we change the AST so it explicitly represents reference links as s= uch?=C2=A0 In theory, yes.=C2=A0 But this would be quite a big change, and = potentially very disruptive. Also it must be remembered that most of the fo= rmats pandoc supports don't have the notion of a "reference link." >> >>> On Feb 8, 2023, at 7:50 AM, Joseph Reagle wrot= e: >>> >>> I've been looking forward to Quarto's stand-alone Visual Editor as a pa= ndoc-friendly multi-line table supporting editor. However, it rewrites my c= arefully specified reference links and they wrote: >>> >>>> We currently aren't able to support reference links because when Pando= c parses the page they are all resolved into "real" links (i.e. the Pandoc = AST doesn't have the concept of a reference link, and since our editor is r= eally editing the AST not the markdown text, there isn't any way for us to = read or write them). >>> >>> https://github.com/quarto-dev/quarto/issues/42 >>> >>> Has any thought been given to this? >>> >>> =E2=80=94Joseph >>> >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/5680a672-b7b0-d7aa-b35b-34693d3b2022%40reagle.org. >> >=20 --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/c11ec934-7bcc-76e1-a200-eec394bd5d2b%40reagle.org.