From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32159 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Reference link support in AST (for Quarto's Visual Editor)? Date: Thu, 9 Feb 2023 08:08:39 -0800 Message-ID: <17086602-B6FE-4146-BD7D-FFE364F85CC0@gmail.com> 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 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6128"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBCVVSSPQMGQEL6SQACI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 09 17:08:47 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f189.google.com ([209.85.214.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQ9Tb-0001Sb-7F for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 09 Feb 2023 17:08:47 +0100 Original-Received: by mail-pl1-f189.google.com with SMTP id b5-20020a170902d50500b00198f3be5233sf1495645plg.16 for ; Thu, 09 Feb 2023 08:08:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675958925; cv=pass; d=google.com; s=arc-20160816; b=gOnlz6HrnUIhD5576cyOnIcYQSXasAE5xyfPnAbCKV/w/JBOkmdpDsvj/rMpsFSvxN k4O+6pC83kDxuXZva/HUEf/Tm/GQf8kTWIgpjM6KUcO6rHUAOiiKzXdxmdVSs44uTtsy i+mpE37xnuZv8B6yxFmBi61Ufhu63OgPJuR4Q51mz8llOcbJEYl3IsAvCLXpm7zrbhGL abcCq+xv979D8wiD6n4vN7yAsES2QJCm/Mfc6Ha4FyZvO26+pENdXHqPqE0maL/mCurj 3i43tM/4s7/7RgNB00S9S3Wsnbx6AVEsVgBOOhqh0+ixIgOT/Z6y6TvPzCmJcnswWqKK qbdg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=4sgFkppQUgeycQjVlnP06IlfezooeK+fNHOSvUlxNyU=; b=tHAIiH3DQIeh7yQSW8JhSOkRyAIJ0LmA4KmYEE+1KqqkYzYV/7j9hFiL8ZZ9ws1f6W NFQJ5owWEZ5On7yjsGJc3FQhjce71PpZCCB89Aq0sL9z4/2zgwNoQJpm7QxMBz4kgZWt 5PY5NAKLFGSQEcGbUSVhgtZiGYmnGodsLPMjJd+9Cb+fs+mI5gjfcFNRswlXKRHn2FOx 0nAij5EudIudYDSjOtr15fZnJ89e7wuoPqfECYOkvdzmx9eY/iKFhPqucUJainFYaLHA vY0JMx1oDJxdodxnWFizIUWvT4LfJKBwjkS12hKyAsJtZJiIahQu4KLK1t7lGVcRJPou JuxQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TMY+ilVS; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=4sgFkppQUgeycQjVlnP06IlfezooeK+fNHOSvUlxNyU=; b=lwfkuWaIvGXJZ9ZxNV3/O5AFq65AuXph9zyULm74/yB5jZ2EliQUc+TE2/8TkUt/ke JHrRuikCj/UEiJQvWNXLPhVjbeUqOKU0zQKCnYAlIWkzWbfSaN6Hg3Tp4Swig3bo7hIV HHrGmpFY6hpF0u38uC9g3wj5ObPnY0Y+hewbcl4IlTXTLywLZX3f9f4pfJUjboBQIgIe TapnF2P/m9RtdU6nkrKeBzcirqliCWpJ87291z8CkN/iojQoVsfMgQ5Z/E4nGv8h0wjB iZYn/thovNojAkmF4/VK670CyOjYzmxmHl/p7z43oVIjYMDW3IObGC7CI7BzHAiXG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=4sgFkppQUgeycQjVlnP06IlfezooeK+fNHOSvUlxNyU=; b=XEaXYyv1yerSoRXC0z+zR/aM+MVwgqf44etBIig8Y20JAra58GF8hV3R4gXZAR4DNW fA+VKoqFXSRZAQj35Ulp99xqghWhd2st8Q1uCgfUqvp7dbvzB9pjyZsIcrk5jjj5/cqf yTvu3SOYw8NygZH5UhBjtPArH9HicPZ/nxjFpeecF5cY8zFNxo3eVae4jGyGa86S34fy 8kwZ79Pj3W/ZPpaYnp4YY9qVPfZ0BGWiGn7C8GTtKfasmFyS2NkeFq5su9bVRhJeSVyd 2XcPLuKcc5BwzwMJtv1uB6d2wOL/Y/tMNpIE3OEi7qiaO4HSE4opJKHP/50LU0S0e7zY / 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=4sgFkppQUgeycQjVlnP06IlfezooeK+fNHOSvUlxNyU=; b=2fh40R9Dfua3k899ZOVIMW7ub8MLiXQpuj2byebuvjRtNowP75tuXnJNM+JFBmWTwd pR8Cb5jWfYs7ulxynWnIDYTvOiJtj8ODG9Wi7GxkaNaUuig4sp/3zZKRRb0085hWCQ0K 5zjMswmlqCjA9ld44ALuc3F/3NvY4EWvaXUPti6PR+oMdR57EQ7DWt1Z0ps7t80hYK/D 3m/xEvsMzS+NM37RfnI6ic8LUoUN8VsJ7ediR2NSdhIh5TBh4XcqA06aOewJk6bh+grg kubnChUt6q3SCYNLa8mf Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKUjF+vJZR04BjvqlEa2BxYwKU1rlvixdBrzoJG/wT1qAI6oYebH y8U7JxPVDXIOItPLg7CiqYY= X-Google-Smtp-Source: AK7set/c9QleL2Z/NNBlm3KyRz/Amjk3ZRZintPPQbxHDA1Fmxs56dw0ohO4drTSjxz94wEXE7ObPA== X-Received: by 2002:a63:af44:0:b0:4ad:30aa:8e6a with SMTP id s4-20020a63af44000000b004ad30aa8e6amr2524706pgo.40.1675958925731; Thu, 09 Feb 2023 08:08:45 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:d650:b0:196:751e:4f6e with SMTP id y16-20020a170902d65000b00196751e4f6els2761913plh.10.-pod-prod-gmail; Thu, 09 Feb 2023 08:08:42 -0800 (PST) X-Received: by 2002:a17:902:b48a:b0:198:adc4:22a2 with SMTP id y10-20020a170902b48a00b00198adc422a2mr4746191plr.29.1675958922092; Thu, 09 Feb 2023 08:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675958922; cv=none; d=google.com; s=arc-20160816; b=fuECUcxlNxAGmxoKs8VtxkC7so2un7XL4higY/fPiIMsBXLxyZzPwBCtKz9ViY0cGY BTDj3rqx9VnHpNfzl+Ks77+YNZjRSudYJuV6j4NOFjNxzd6kYZunQK6CSq48i1c0hApW fMFHWY+8nIua7on8ZAOTafne3NByi5eDOjL8ADxYvLwWM8+DasrrVaZDKAZJ6Wu4hGrT Q0jAk7JLcB7t24CJYdaXxnZt1Kp8N4Gmt1ZVpCvFNuFk5iS148+siE4osUmH9oBa31rK z/bxSIGHdRGYhyEchopOrY27LDGDhN109cQWy+ubVRNCpEdb5Y6KBz7udSCv+wKKz9yL YpBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=brrk07NO0CK/tdmXhnkbJPr+uxeI74tYR3Ld/lfkG9E=; b=JxZwYNj4hNOZazXsYu7IVC6fSumtoIKx9Ej5L2DLOi9luxpvnqW4fKJqdaMwPdKZcO LTWMwe3FzXKpqhKT4Grs7KdwjmNj+OlpZNc5r4SSQwdiGCUFlmZLdop1J+h+pfQuuVEN RWJxnIBPQdtR/F7gpxRjrqEDOW0G3GvSnBj1/fX1lYGrhVLhjRf3kaKuaGII6Dnk+oQm ++hJT1BUI+3C3AuXnOOwG/6OfG82SYe3GQU7YYP27UBZoc8/i70oSdHyZcoX8ZNpn+pH b8OzUSEe//EgOo4wqeaE6ba6aefOBUOnn00nR/jJX/3Lxz08Z0kS1u1wFFq/kuQPcJVs t/0w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TMY+ilVS; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com. [2607:f8b0:4864:20::629]) by gmr-mx.google.com with ESMTPS id u17-20020a170902e81100b001992539a046si89210plg.10.2023.02.09.08.08.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 08:08:42 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) client-ip=2607:f8b0:4864:20::629; Original-Received: by mail-pl1-x629.google.com with SMTP id be8so3311671plb.7 for ; Thu, 09 Feb 2023 08:08:42 -0800 (PST) X-Received: by 2002:a17:902:ce11:b0:19a:59d1:389e with SMTP id k17-20020a170902ce1100b0019a59d1389emr2266608plg.23.1675958921340; Thu, 09 Feb 2023 08:08:41 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:4780:3350:7cfc:11f4:ed36:b774]) by smtp.gmail.com with ESMTPSA id n20-20020a170902d0d400b0019948184c33sm1630685pln.243.2023.02.09.08.08.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2023 08:08:40 -0800 (PST) In-Reply-To: <7241d44d-dbe4-15f4-c1c5-a46ff6c069da-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TMY+ilVS; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::629 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:32159 Archived-At: You can disable the raw_attribute extension. > On Feb 9, 2023, at 6:28 AM, Joseph Reagle wrote: >=20 > 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. Pandoc was not really designed as a reformatter.= commonmark-hs could be the basis for a more flexible reformatting tool. >> Could we change the AST so it explicitly represents reference links as s= uch? In theory, yes. But this would be quite a big change, and potentiall= y very disruptive. Also it must be remembered that most of the formats pand= oc supports don't have the notion of a "reference link." >>> On Feb 8, 2023, at 7:50 AM, Joseph Reagle wrot= e: >>>=20 >>> 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: >>>=20 >>>> 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). >>>=20 >>> https://github.com/quarto-dev/quarto/issues/42 >>>=20 >>> Has any thought been given to this? >>>=20 >>> =E2=80=94Joseph >>>=20 >>> --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/7241d44d-dbe4-15f4-c1c5-a46ff6c069da%40reagle.org. --=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/17086602-B6FE-4146-BD7D-FFE364F85CC0%40gmail.com.