From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33301 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: How to format visible reference links? Date: Sat, 11 Nov 2023 18:51:00 +0000 Message-ID: References: <7ab32601-e03d-4587-a563-e329a1987781n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b5f4360609e4eb2f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23852"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBIU2X6VAMGQECIIPTQY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 11 19:51:19 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f59.google.com ([209.85.208.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r1t4h-00061y-A4 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Nov 2023 19:51:19 +0100 Original-Received: by mail-ed1-f59.google.com with SMTP id 4fb4d7f45d1cf-54554ea191bsf2258468a12.2 for ; Sat, 11 Nov 2023 10:51:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699728679; cv=pass; d=google.com; s=arc-20160816; b=Df3R9vuQVxQHeBq+nC9jqkNzCgEUrRa8dOtN5YU6sKl6M/6A1ZaGv/AGswDcYtqntE 146KHw2bjM0lWmHkAgLt+vLIsDPNdsghVE6pg77lLZhzku9qtqmRO0mF7RYx05Eh1O4M b9MknlCaRp7hIjeSDCXOEzjLfcouYhUoA3+TXAsScQqCUL7HqfZJ3sXY/PDV8dPDzPGS B45wN26X2Sm9OJNYJTtYi/n/0NqT9xtCKedHJ5c+2dpnJqYjLflmvD6eOfLwrrH8UTav 89cuH+da+52vXzN0ojV6cQr1m38c0x67oMY21UpFFJioKkNxZd3w6PlYF+uL+hmOgA0w Aonw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=8Dt376UFNVh/Q16uNjui70Vm5f7nUMhirLPRrf/+xBc=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=PReA+lZBd55cb/+r/g+OwvHsO5jadggbJJQSlXIik1d6AhAokEsD0Ihr6K63I7LL/r TMTKhIHepfiVWoUvIS1qupzYFtldlSFtbuTubjIxOYWSKpfMahF/SttSrns/OpLd046E yidsYD1Ij9x0INaiyXRIlndOs2TBEk2eJwCMJVi2npCo3dWSmWwtPhav+dnwWwA+3FvD CCzL58MxtPZ2VxAGMbe5nHwEZ9YXPsZyheAV+WWlzNmWgOYsqUGwbe3IVDzlExpnvb2C 25n8/lvH2sPvJgdqX2colBUr1/oPmT+aRVrdmqHR1S2sHeZdUsWRJ76GPHgPUnj2fw4n DX9g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=mEAW8jYk; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699728679; x=1700333479; darn=m.gmane-mx.org; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=8Dt376UFNVh/Q16uNjui70Vm5f7nUMhirLPRrf/+xBc=; b=dFZULBo3akwOrzdKXFwxr48Q3OY958ESk41ifG1AkuC2VyW0wAdpQ3ti1dWRomgzqY DLz1i18bldynRvDSfKi58/ZILc9VRRbbovwOSj4FmfzkN9nSMClCDLrwEWGuRIXQMhEf yG/IhJMhrxCd9sSYcLn+clgdxIPUnMtMexwrfF+Nd1tPj/Hbw5c+9SiKo5s/Xx/esQtt phjTlym+7OeMcxA+QvN4RrPnAf0No3ONgs3FSUohCbDJkMuqyU6RADk17iNBREyOcXMt Jtwecpgjq46O8v2O8fpd2QrG7PLgovYMQ2U1VA6g2ng7yBVlc73tDtIO+AB X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699728679; x=1700333479; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8Dt376UFNVh/Q16uNjui70Vm5f7nUMhirLPRrf/+xBc=; b=Ls+fcuh1iOvmBDck3FxJWS5PxqTWHr7e0IUA+Qs7CbBhQEd7L2qjKZUUxoqkWgbpIL MUxxxCMLfpJLfv5SNSn7+PbRepP13IGq4tFFJB7tchH6JBIpufQ2t9n0XJzSElC0MIwA R6jfqrlqPwdJpxPFzrIDYd5EFJ1L3426e39DHp72B48rxSqkbfWGo1wPzn1+Wl5GofPS yYbt+2VCMwzLdmhcmnkmcWbiaeJnMACN3lI0j6lGAIxQ9/Rzx2CFLF7Hi6P6IeQhS1TK 86c8TZtBBPKJy X-Gm-Message-State: AOJu0YwYvbZ+qJfUI8xSD16J698L5jXCBw+6LfuPNDKU1HHw9QWEcXUh ZlRQvJHjANyWVawn3Va2xYE= X-Google-Smtp-Source: AGHT+IFq+nmCjkLd4kXIZPOOYRQK4RLtuljQ1FPSnfhNlqN97hdqX3aufmcM87GMn/Swxo12JJsDFw== X-Received: by 2002:a05:6402:31e8:b0:543:bf55:248b with SMTP id dy8-20020a05640231e800b00543bf55248bmr1821899edb.13.1699728678653; Sat, 11 Nov 2023 10:51:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:c757:0:b0:53d:b3c3:2123 with SMTP id c23-20020aa7c757000000b0053db3c32123ls172267eds.1.-pod-prod-07-eu; Sat, 11 Nov 2023 10:51:13 -0800 (PST) X-Received: by 2002:aa7:ca57:0:b0:542:d3e4:729e with SMTP id j23-20020aa7ca57000000b00542d3e4729emr1823927edt.1.1699728672864; Sat, 11 Nov 2023 10:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699728672; cv=none; d=google.com; s=arc-20160816; b=kRgYUiqmeSYr2nFHDLHCeDbVWxETU5UYgD+aQTWFMYFtMMMF2n+NcbOHELt2HzjBKZ Setyn0LVSOmPlA+RR98FHua6nnyA1S6Pf5b3HAMjwMr9akKpE26CmsH6vym8+2QlVP3T v5cdYZ8opNTHZBIVlD3CxWgBuVEhvaWO5gJYqEPK6Am+KY6S2lQl1kOpIWUxl2Z46Fvh GQJhBshAjRB8jIL/2QSNdD9Ddjh5FPn9mlp69NHpKHLtGQPzwaDEjX+9B05pv7FgEGRr NmKSrkT9N8fC6JgmaQAfZW4AXEISLpp3mMxpjwIps9jlWVzySisjE7qjCIkgVvueJsJH /jwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Sh/fZ/Nh0EQ/2ApbCT1bQLxgKZEyfVyp/VKngOeLhOA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=k7A4Bwgt+2z4tE5OWXQ6fLuFeSmXOj0ih0WmKsHnbhDRUoiZoFQstaE025GZNcDpTa /r1cCZLz/immJVSyjIAUpa2s45GQKvKcriHY2TofNlAHjoU8CFdfUbE8tAClpf15wU1c WC+QSPqTZr/Hw0B5eY3ltR7RRQmeXsU6WOywJmeKlBARGgghs5IuVLNoLmRZ8wz52rcC dC7SRyCF552B2xnN/PwwFL/xxuCw1fQIj5xbh5fRrNzMGmglAhf7TkE3eMmhTV91I5aB O6uHengY4rZty3OSFw2AIT0XYS8KuKJAjQBSNXXEmz15/qrS/ztXNa1eyDgNzdZL4A9J XEJg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=mEAW8jYk; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com. [2a00:1450:4864:20::62e]) by gmr-mx.google.com with ESMTPS id fk2-20020a056402398200b0054359279646si74329edb.3.2023.11.11.10.51.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Nov 2023 10:51:12 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62e as permitted sender) client-ip=2a00:1450:4864:20::62e; Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9bf86b77a2aso485561166b.0 for ; Sat, 11 Nov 2023 10:51:12 -0800 (PST) X-Received: by 2002:a17:906:6009:b0:9c2:2d0a:320c with SMTP id o9-20020a170906600900b009c22d0a320cmr1365977ejj.46.1699728672021; Sat, 11 Nov 2023 10:51:12 -0800 (PST) In-Reply-To: <7ab32601-e03d-4587-a563-e329a1987781n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=mEAW8jYk; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:33301 Archived-At: --000000000000b5f4360609e4eb2f Content-Type: text/plain; charset="UTF-8" The reference links aren't part of the AST. That's why they don't show up. But I think you know this! I don't know of a simple way of achieving what you want to achieve. However, the details of your references are in the AST where they are referenced. So with this input: ### Referenzen [1] - [1]: https://www.youtube.com/@johnwitulski18 "John Witulski" - [2]: https://www.youtube.com/watch?v=Rl70mXyDxII "Vorlesung Compilerbau (5) - Bottom-Up Parsing" - [3]: https://cisco.github.io/ChezScheme/ "Chez Scheme" ...you get this AST (reporting using pandoc-ext/logging): (#) blocks Blocks[3] { [1] Header { attr: Attr { attributes: AttributeList {} classes: List {} identifier: "referenzen" } content: Inlines[1] { [1] Str "Referenzen" } level: 3 } [2] Para { content: Inlines[1] { [1] Link { attr: Attr { attributes: AttributeList {} classes: List {} identifier: "" } content: Inlines[1] { [1] Str "1" } target: "https://www.youtube.com/@johnwitulski18" title: "John Witulski" } } } [3] BulletList { content: List[3] { [1] Blocks {} [2] Blocks {} [3] Blocks {} } } } ...so you could write a lua filter to collect the info from the links and output it at the bottom. But I can't help feeling that you'd then really just be implementing your own simple version of citeproc! Using citations isn't too hard, but there are definitely more moving parts. I could provide a mock-up if that would be helpful. On Sat, 11 Nov 2023 at 18:20, Cev Ing wrote: > > > William Lupton schrieb am Samstag, 11. November 2023 um 18:20:32 UTC+1: > > To prevent this, you could escape the opening square brackets like this > (I've also put the URLs in angle brackets): > > ### Referenzen > > - \[1]: "John Witulski" > - \[2]: "Vorlesung > Compilerbau (5) - Bottom-Up Parsing" > - \[3]: "Chez Scheme" > > > I tried that, but then the reference-links stop working. I do not want to > prevent the reference-links, instead I want both: working links in the text > and a list of all links at the bottom. > > > -- > 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/msgid/pandoc-discuss/7ab32601-e03d-4587-a563-e329a1987781n%40googlegroups.com > > . > -- 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/msgid/pandoc-discuss/CAEe_xxhCgWUKDBB8HmPdAkbTWk%2BC2N0OD5F8Yah41qGSB8kdAQ%40mail.gmail.com. --000000000000b5f4360609e4eb2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The reference links aren't part of the AST. That's= why they don't show up. But I think you know this!

= I don't know of a simple way of achieving what you want to achieve.

However, the=C2=A0details of your references are in t= he AST where they=C2=A0are referenced. So with this input:

### Referenzen

[1]

- [1]: <= a href=3D"https://www.youtube.com/@johnwitulski18">https://www.youtube.com/= @johnwitulski18 "John Witulski"
- [2]: https://www.youtube.com/watch?v=3DRl= 70mXyDxII "Vorlesung Compilerbau (5) - Bottom-Up Parsing"
= - [3]: https://cisco.github= .io/ChezScheme/ "Chez Scheme"


=
...you get this AST (reporting using pandoc-ext/logging):
(#) blocks Blocks[3] {
=C2=A0 [1] = Header {
=C2=A0 =C2=A0 attr: Attr {
=C2=A0 =C2=A0 =C2=A0 attributes: = AttributeList {}
=C2=A0 =C2=A0 =C2=A0 classes: List {}
=C2=A0 =C2=A0 = =C2=A0 identifier: "referenzen"
=C2=A0 =C2=A0 }
=C2=A0 =C2= =A0 content: Inlines[1] {
=C2=A0 =C2=A0 =C2=A0 [1] Str "Referenzen&= quot;
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 level: 3
=C2=A0 }
=C2=A0 [2= ] Para {
=C2=A0 =C2=A0 content: Inlines[1] {
=C2=A0 =C2=A0 =C2=A0 [1]= Link {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 attr: Attr {
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 attributes: AttributeList {}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 classes: List {}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 identifier: &= quot;"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0= content: Inlines[1] {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] Str "= 1"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tar= get: "https://www.= youtube.com/@johnwitulski18"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 title:= "John Witulski"
=C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 }
= =C2=A0 }
=C2=A0 [3] BulletList {
=C2=A0 =C2=A0 content: List[3] {
= =C2=A0 =C2=A0 =C2=A0 [1] Blocks {}
=C2=A0 =C2=A0 =C2=A0 [2] Blocks {}=C2=A0 =C2=A0 =C2=A0 [3] Blocks {}
=C2=A0 =C2=A0 }
=C2=A0 }
}

...so you could write a lua filter to coll= ect the info from the links and output it at the bottom.

But I can't help feeling that you'd then really just be impl= ementing your own simple version of citeproc!

Usin= g citations isn't too hard, but there are definitely more moving parts.= I could provide a mock-up if that would be helpful.

On Sat, 11 Nov 20= 23 at 18:20, Cev Ing <ceving@gmail.c= om> wrote:
William Lupton schrieb am Samstag, 11. Nov= ember 2023 um 18:20:32 UTC+1:
To prevent this, you could escape the opening square=C2=A0brackets= like this (I've also put the URLs in angle brackets):

### Referenzen

- \[1]: <https://www.youtube.com/@johnwitulski18> "John Witulski= "
- \[2]: <https://www.youtube.com/watch?v=3DR= l70mXyDxII> "Vorlesung Compilerbau (5) - Bottom-Up Parsing"= ;
- \[3]: <https://cisco.github.io/ChezScheme/> "= Chez Scheme"


I tried that, but then the reference-links stop working. I do not wan= t to prevent the reference-links, instead I want both: working links in the= text and a list of all links at the bottom.
=C2=A0
=

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/7ab32601-e03d-4587-a563-e329a19= 87781n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxhCgWUKDBB8HmPdAkbTWk%2BC2N0OD5F8= Yah41qGSB8kdAQ%40mail.gmail.com.
--000000000000b5f4360609e4eb2f--