From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32157 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:28:34 -0500 Message-ID: <7241d44d-dbe4-15f4-c1c5-a46ff6c069da@reagle.org> References: <5680a672-b7b0-d7aa-b35b-34693d3b2022@reagle.org> <9A64C448-20CB-4E7B-9739-61AD4730DB89@gmail.com> 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="33065"; 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+bncBD65ZAVVYEKRBFUGSSPQMGQEGHNSAIA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 09 15:28:42 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f57.google.com ([209.85.160.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQ7uj-0008Pn-V3 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Feb 2023 15:28:41 +0100 Original-Received: by mail-oa1-f57.google.com with SMTP id 586e51a60fabf-16a14af8cdcsf1105882fac.22 for ; Thu, 09 Feb 2023 06:28:41 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1675952920; cv=pass; d=google.com; s=arc-20160816; b=QXmGOPB3XFZx2X7y+sal146VvRopvXsCX9WaS2NxWSdkG08QdKx9HjIxIhb2YPNv3r vETTd10aMCiMLOM6csp+6UCCcloIcisWjwyR4kmTq0h2zTPyqeM3qEIcRxlpOl45L6vL TWIGZmMddE/4nR0ddF0cDehJCZ8UA3JhHlQsRlhwAbl1zijxWyz3iBFVJRCaPOv7n3cW Mw6zWXnCPYz7PSziPTAC8YbDsf46MzhsWX6e0zkPCr2TIFFlsyZNBIUk5sJq+cbpvl7W j2L29gV7fs5qyKKCyRFCGnNjnH5gkZOkLvGgifzW5VlIUG3pYyYFIqd9XJ3oO5eGs2Ho mM2g== 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:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=a8LoqPW5244KulFZeb1TES26NR3HkVvMKpZhGGlLvoc=; b=zUGt0hXUXRB2V9nhOerujRG58T7VEqYE1HDKkuGgTbZFI7FXMQDfNB8VWxEXgizZs8 9HqDs89UwW2n1lERN1iwcrqXXYornx8mbSHqi/A30yjefXyMHLREmia/wK441B3kxj0c THEKeQ3Zhxf4IHi594X4Oi3ITg1ahAGQbhdTqUuFDfjvZmuSD3Cxv5vxIEw5eMYHcXpy zEvBteEUyBZDxcTrrvCGBFY1i0Q1Kj7I/cE5PfUFiKyPH3jOFzkSur3jGNAGcv2OiHRe r0lRHN0C+CrpeeK8yAMOIqieTnM8kCFFRaogX8gJR0mLtIemCaMtauMjKa5I1V5liDW/ NhQw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=wK9P8SvG; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.209.253 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:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=a8LoqPW5244KulFZeb1TES26NR3HkVvMKpZhGGlLvoc=; b=XEnZK8CL2ubJvLgrL2aqPnvp/pj5vt2u5LLc8epQKAuJT1pcas0GwXXY2/GQvfwUXA Oz34rrroIaJiHEKjWDAObBT6M894pZhxT0fRw6GIach7dFUlbaSOESp2+LRcPxAAqzK4 BfD/F/7w6CCJ2CnLpMHscZfohb28cbC9LqrkfPK6M2vkrL0bC1JRz89kAzDaghdKvxQm s3wKdZGouyq8yjBs9B8l/J9UAh+PPBa2RUAY5g8vlS8/kLYDz5ObGgsIFvYokOi+NFpb pEMBcnNkKlwokKvIjGG2seEQ59ibK6qrp7gWb 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:from:references:to :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=a8LoqPW5244KulFZeb1TES26NR3HkVvMKpZhGGlLvoc=; b=PBPDEjIMQ87sz93OMffv/5A4a/jwf8S/o1gaQrNky82eDgJdNx9d7J1hL4faBp6L6S Y9hCMRdU+AibLMhtYWJIcwnbp9k8O0RmLANcoYtpazsxR8+NmeaBWoEmOtT54ii/QjPS ZrtqG02/QW93VS2bt4pSrvEoUkviXFGuo6kh6WQc93ox/ovk+064OFGMJD28DJse08Q7 Vj/W1xz58RT9o0ojEpliNqk6nPoXKgTypNtUHSBw9Eb4MRkOAJPHB9oLrRFt Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUt2r1O+ylV88KEnjbYSSqDS5gct0MDctMazAPw2CC8NCCA7c8b de+ayXYsUykOKzGv0cZLZyE= X-Google-Smtp-Source: AK7set8wayLvuD3iix04egU6Nr1OiOSIQZcXRAfOVvg2+aldQyYpuQ1ZmnFdhkdZqm0AoeV94sdsxg== X-Received: by 2002:aca:b706:0:b0:36e:2d00:1b78 with SMTP id h6-20020acab706000000b0036e2d001b78mr581116oif.145.1675952920634; Thu, 09 Feb 2023 06:28:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:6010:b0:684:ccc3:155d with SMTP id bx16-20020a056830601000b00684ccc3155dls327147otb.2.-pod-prod-gmail; Thu, 09 Feb 2023 06:28:38 -0800 (PST) X-Received: by 2002:a9d:61da:0:b0:68d:48ef:d5fe with SMTP id h26-20020a9d61da000000b0068d48efd5femr5908060otk.23.1675952918498; Thu, 09 Feb 2023 06:28:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675952918; cv=pass; d=google.com; s=arc-20160816; b=DgUIouwn0Rda4JaUq0820x7Rgwg9TGmwzAGbWMhe8thlNre+IZOXRRQ6aKgzuEF63Z 9vJJjone7TVNqbUThxW9QN3j8vvjJD9SoiW46f9S42JVhaw70teD8JdGNoT/oVNGkbJa nTbE5xGZ/BN/d4IXUwmm/4Xo6VngzXKflt2uzhxMolFdaOiBeHqCvNAZnc5Ae86hkYMk kzvbIjviPQmLn2q4Z+KAKbX5Weyt54jw7VGMYxGd6oINTsdh/GIEmPCa2YxKhIrm3g2d gutmYmESS+rgu78WM4tR81Lt4NalZBv75DFOd3hV5CPNmKjjMaB9xGsf5MUtOWSqm6If Oi3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=xWHKVMSutD0pe1pZrlsRyfzIOqIvUh/WZtng1ySawvM=; b=j3NMMXQycQuJv5l1wiE06wdZoVnw11WmutUmicDC79+50dIAghi2ZxBjGGt8mZFtbt 0+Risou9TuI5lNPGHhYD1AOmDIjYlTFX9M9jodX51v97pRWXC+Xo5pWf6VyHvVJLl4D1 BdCnoMV6p++lMJSR/MEgzNKUP4PIeaog31ivF+R/9T44BJv5iRrwFTG2P9dtylgNrxq9 v2FMUgRB0V4qA6qgUtOZRdMF8RL8HDXdzqMmcvmNVywazNTcwbt2sHABdK0vOA3h3leJ w3nahsPR0AdcJldqmMDGN60NfCfsBiJV8ZZGj5tCs92ufn2jZnJbEjB+Ia4eNFpWjSRE xw8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=wK9P8SvG; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.209.253 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from iguana.birch.relay.mailchannels.net (iguana.birch.relay.mailchannels.net. [23.83.209.253]) by gmr-mx.google.com with ESMTPS id bh27-20020a056830381b00b00686566f6f48si215929otb.0.2023.02.09.06.28.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2023 06:28:38 -0800 (PST) Received-SPF: pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.209.253 as permitted sender) client-ip=23.83.209.253; 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 5FDA33E1AB3 for ; Thu, 9 Feb 2023 14:28:36 +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 C068A3E13DF for ; Thu, 9 Feb 2023 14:28:35 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1675952915; a=rsa-sha256; cv=none; b=n/ziUU0CLUKbnU5NaFzyY9YnFGDA3cnWBqO0X6UstdBc258VC/QuQL7BT0NxMxyEIvwQ9Q RuCd4M3osBC30PSKqIC2br7yaTUniEkE4VhM7heRZCjiJvAnQcZ8Ady79qSi2BRmp5RbVK ZMIdyocdact16JIS3lSvyuCWOWOm3uHcAmEcfPzjOizukYYeayDtE+/Mz1famHThJIDVpS RMqSpNY9dBLdN/HspSCsr78HDZcWjYHKO4GBjMaUCMdP9mBbMUEzSHCS3eXkc8u7wq/PTS zuOhQ5iRYjoOO8CIo6tTjM32rGR0leQzZ57vfdeC2ToIauehNO9BXv9BUwbnVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1675952915; 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=xWHKVMSutD0pe1pZrlsRyfzIOqIvUh/WZtng1ySawvM=; b=VBBE8USVMZRWn9/L4M4XqMu2ClBNg/Ap3iRgJnzC/3luJU6rQgIfJ/tdbwkFgNa+izkqrX lDFRgwdijtglFht7OVOeP0shsv/6L35gqIOCJISi8NM9pbaRnxXyZuanHgaf2XfV+QJtnv Aph1ryjcFvQkTCQ2TcvUfn89mtXQMRAeqOd9ZTDm1cBWvWiLUtm6RkRonDoCwnN7VAL5n4 sx6/QYLwSBeqlNUo7ep9k4HNaG7YH+FXfEwJ/3uQ/OW04TTN8QhqkcHj85VqW0/7HYVusf FmJMzj3I6VWqRdmEqCabswl9N0ZJ7y+EQhJfoq2sUQ+C3Q67nxDPgnus8V0RrQ== ARC-Authentication-Results: i=1; rspamd-7bb6b5d795-p7vhd; 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: Bad X-MailChannels-SenderId: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-MailChannels-Auth-Id: a2hosting X-Arithmetic-Lettuce: 3966f018546621f8_1675952916105_4061765338 X-MC-Loop-Signature: 1675952916105:1576602658 X-MC-Ingress-Time: 1675952916105 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.116.179.112 (trex/6.7.1); Thu, 09 Feb 2023 14:28:36 +0000 Original-Received: from [129.10.79.208] (port=57904) by az1-ss21.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1pQ7uc-00D96J-Q4 for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 09 Feb 2023 07:28:34 -0700 Content-Language: en-US In-Reply-To: <9A64C448-20CB-4E7B-9739-61AD4730DB89-Re5JQEeQqe8AvxtiuMwx3w@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=wK9P8SvG; arc=pass (i=1); spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.209.253 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:32157 Archived-At: Thank you John. Keeping in mind that pandoc is not a reformatter, I nonethe= less have occasion to want to convert from markdown to markdown and one oth= er nuisance is my (HTML) comments get quoted and labeled as such in the pro= cess; I then can't un-comment them with a single keyboard shortcut in my ed= itor. Is there a way to keep HTML/markdown comments with quotes and label? ```{=3Dhtml} ``` On 2/8/23 12:32, John MacFarlane wrote: > This is all true, yes. Pandoc was not really designed as a reformatter. = commonmark-hs could be the basis for a more flexible reformatting tool. >=20 > Could we change the AST so it explicitly represents reference links as su= ch? In theory, yes. But this would be quite a big change, and potentially= very disruptive. Also it must be remembered that most of the formats pando= c supports don't have the notion of a "reference link." >=20 >> On Feb 8, 2023, at 7:50 AM, Joseph Reagle wrote= : >> >> I've been looking forward to Quarto's stand-alone Visual Editor as a pan= doc-friendly multi-line table supporting editor. However, it rewrites my ca= refully specified reference links and they wrote: >> >>> We currently aren't able to support reference links because when Pandoc= parses the page they are all resolved into "real" links (i.e. the Pandoc A= ST doesn't have the concept of a reference link, and since our editor is re= ally editing the AST not the markdown text, there isn't any way for us to r= ead 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 Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/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/7241d44d-dbe4-15f4-c1c5-a46ff6c069da%40reagle.org.