From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31893 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Balaji Dutt Newsgroups: gmane.text.pandoc Subject: Removing local URL protocols when converting to HTML? Date: Tue, 20 Dec 2022 11:41:42 +0800 Message-ID: <732b167f-0380-8ba6-9385-762601ee4b56@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------mmrK0s2RG58C2FZRzq3oSO9z" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2422"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDV6VCFWSEDRB7O5QSOQMGQE4PFYPPA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Dec 20 04:41:55 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p7TVq-0000QL-3S for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 20 Dec 2022 04:41:54 +0100 Original-Received: by mail-yb1-f187.google.com with SMTP id z17-20020a25e311000000b00719e04e59e1sf13016875ybd.10 for ; Mon, 19 Dec 2022 19:41:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671507713; cv=pass; d=google.com; s=arc-20160816; b=feM3MIurqGcy9D5+XXS1qquqpYquW44uZBENb+cWyFPjN85H+X1NIa3oSsbk+WcFEe lBWd11yi+1eYqxVNIj/+2KbifL9euuyu+2eRozt7LRWrZKuWvE/c51jLkhPZ6swACrX6 LZXm2yMEZ0vPCLN2a3a/omHaGl08Yh4AtEQGuUsk2vanpgzdxAcZT9Z+vqktz9WelXJo J3jR6J4ADOkSuAduhxj3L5lvZ4XQRsiwUaIVDjUQqBdaHXRNPTTMw39exT82zpJGoBFn h3wz9DyC7ezNOVWtMnWygoQCx7JAlAj2rERQO+laaOjyFNg7k3o9l2uEDj17AUU/aiY9 yu+w== 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:subject:to :content-language:from:user-agent:mime-version:date:message-id :sender:dkim-signature:dkim-signature; bh=vgrmVeBxv+XBBX9U9ZRFBY+ZMmSnT1fa+hIEgN7r0/k=; b=YjQjEsoFCq6HFY74YQ1L9GUVMMUoKJ18IAXW5BeQSZKTpbI0iazZ2w3wwcHrWMNi/k twzzgIzumIj8BU7c7xnEGgJh0QBXcZENpKEINA7GRc3faacfcOlIFe2uj/F7LfasP/4g CVHbqp2mQHEb01ur4NzUoqCu6+Eb+bf0zcnsIn6NZ6aBdW+xqWDBR/BfrB6LOVJzspon nOzD/xaB+41DGjDHFxVUp6nWIBpDbqOpI9LnxrzNBLgntiuFM0tIpUJWlH91xR8Mi2pu FBIKmJShbc7N02/LT+4A1HN+xx+MfRXd4RjyfhD5MzLmVTgX6hTZHn/Mf353QHe5YYFP t++Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbFk8kMX; spf=pass (google.com: domain of balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=balaji.dutt-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:subject:to :content-language:from:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vgrmVeBxv+XBBX9U9ZRFBY+ZMmSnT1fa+hIEgN7r0/k=; b=gRGZJqEIeRoExLuVLaUgOQOhOrT5qsejaHFV+UFGx2EK8GhGdQJ4HPQaDP2S1JIVkb M4+DIsAvV9KvHvFUPC0UzMGou+j8Fm4QbdSHROnsCUA/S93YnhLVrX/lhLnm5RXshL0E 1B+hXoOYycMS1Z740/8Se07Q2C2ZN8527ebUkg+jklYPZSWlBM13AYZjAXliJgziXZS1 6TxLQTTZMkXP2ORcz/mz9lGAIoZbqI/4qDdAVxb+n9eKi9myM+UfX6uiLksU4ir++Ohw caUcQKdqyS7JYMMRBcycIdJ79vA3r+AByWNA7s7x8MSewej3daKMieKgF9sw3GoWLAHh xYrw== 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:subject:to :content-language:from:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=vgrmVeBxv+XBBX9U9ZRFBY+ZMmSnT1fa+hIEgN7r0/k=; b=nXUlZcF1Kayv/DRxYrXxR21nA3i0Co9QD2Run6Q4I2HWSXqS/Dc/3XOj7pSytga7Bk a/FjfHSPUiTOLE7ZR2WVCcJDHjLF9xWrna6rIRc1kM5SGNzSKsEPZlKu6/UexgEPrUcs Xn4GKaI3lY/0vQrcmmkiJPoJubrlCNSCwZ+PjSoRA8x8uxhFR14h9dCs/qJvVDXfJSV1 16BwHsoSgW5SABF8nzNmboRk5Yf1+ZcwPwMkHMeNSHKp2DfOXSeI8CYRniNkq9XO1nnI 4fpQqdFBwpdWh5Cg9pmOc27OKLl3QvKBRQdcKpgaYMItEvo1yQC5+qyY+c2xStsya8Yr 47Sw== 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:subject:to :content-language:from:user-agent:mime-version:date:message-id :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=vgrmVeBxv+XBBX9U9ZRFBY+ZMmSnT1fa+hIEgN7r0/k=; b=FR816lwhE5zQZaDWEko4XevDU6uVpR45d0Grj9NvoknJechNJJQPRaLi1rx/yJLSRd p6wOx7SRDx1Xa59snadAlsvbMtjNeu7NRRqrvyQS6AuWNdklmIS4D82bdwSp4V0KC352 OFrZC214/liUfD/KIMuifVGOSX4rigR2+EH2bBYxLPrlxtA45p4jAoUFKpJEEOdAHzOK NbgaC3r+xn+sbcIepPrTst6vSZo1a7e4qOGiuZQ/2aimeKe55Gz9Qo6rDKnvZgO3i6SM B/yM0tyq66KSMZem9HRpsPt2/qMXgQ37JU12TuIAw Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pkNEmjCM8jQuhKyp9wGOAYF0RIQ3jLXH33TapravJHfSY3NCIz8 ZYXHRO+WWrgj+PaWPjRSLUA= X-Google-Smtp-Source: AA0mqf4MsoxGhSu8g1ioRI/G9ZdhLXqAeBl7quhZ7L8hr5slSQELQPhlc2cxRLNiYClHAGVbBzhEiQ== X-Received: by 2002:a25:d197:0:b0:703:4bfd:3986 with SMTP id i145-20020a25d197000000b007034bfd3986mr15988730ybg.407.1671507712966; Mon, 19 Dec 2022 19:41:52 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0d:e28c:0:b0:373:6b5d:4369 with SMTP id l134-20020a0de28c000000b003736b5d4369ls6375314ywe.6.-pod-prod-gmail; Mon, 19 Dec 2022 19:41:49 -0800 (PST) X-Received: by 2002:a05:690c:d8b:b0:410:46bf:22f9 with SMTP id da11-20020a05690c0d8b00b0041046bf22f9mr46823470ywb.27.1671507709357; Mon, 19 Dec 2022 19:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671507709; cv=none; d=google.com; s=arc-20160816; b=SqHnnFwPkyO4hZHiOlb0ulJMvhov3G5EXsHHNGG+3yM2jniEYsfhlLpm19jRcPt/VL x9cktsDRlIUMu+xJJRgaboY9yyk0uqp0HT/VAG+GS9LZ2d2pWzNgA2Egm5/aekHOEO16 v5gM0+oMpsmKDxcIWGY+7TEwa7EYSbMgMWpN80Q7PwG9oCOZFQK4WoXRoIDlycRvisdN bpFIVWpgO067Jgc3yPvs4JdPuT5tvhBef352pvSog+DZbo2Pz4e1CAF9B+XDoM/pdE7/ 6jbT9MMgHFtcOakkjBEQUNbUUsXP7/X3sy0ZMAwL3i6ZH4E6EoPlCft3LJvsq/Wi9LrO X61g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:content-language:from:user-agent:mime-version:date :message-id:dkim-signature; bh=8sR7ZVuu9I3pP6EGyqQVXZ+J7yJeEqP871D5y9Y2K58=; b=FK+aSrPmCgeZM03O+7xONtRz4I29wdgv4ljP7gn1Xiglyuw/ktmvfO5Caa6o3osKyo dC6CGUA0452Zg+VgNTr6rNssFcDbwApP1UTeQIyo14SG/chZIt+7cYW1xaXl4jwM9Xvu s2kTr41hMqxmcNqs9KZ+KiSfjYpA+Eqv2avIHFJbWmxBuS+aqBiOXFXHcKCewTCwvcrK r+2IlAjDH6cLqszfBynkyO/UYt8VO2aRwiQqSsjaB37RLTPkjfBGg34xxP5rOA7fLl1i ga3HZPsaGMIYDgHwtSBXbuzylsFostSr8O+Kfm5dZbU1jlR2reSM/Wqx3UJ2fTvPlaix Vfcg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbFk8kMX; spf=pass (google.com: domain of balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com. [2607:f8b0:4864:20::630]) by gmr-mx.google.com with ESMTPS id z145-20020a814c97000000b003d82e3c1d09si953083ywa.4.2022.12.19.19.41.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Dec 2022 19:41:49 -0800 (PST) Received-SPF: pass (google.com: domain of balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) client-ip=2607:f8b0:4864:20::630; Original-Received: by mail-pl1-x630.google.com with SMTP id d15so11002096pls.6 for ; Mon, 19 Dec 2022 19:41:49 -0800 (PST) X-Received: by 2002:a17:90a:7890:b0:221:4338:a6ae with SMTP id x16-20020a17090a789000b002214338a6aemr36522182pjk.33.1671507708141; Mon, 19 Dec 2022 19:41:48 -0800 (PST) Original-Received: from [192.168.83.104] ([223.25.79.220]) by smtp.googlemail.com with ESMTPSA id gz14-20020a17090b0ece00b00219463262desm6711587pjb.39.2022.12.19.19.41.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Dec 2022 19:41:47 -0800 (PST) Content-Language: en-US X-Original-Sender: balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DbFk8kMX; spf=pass (google.com: domain of balaji.dutt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=balaji.dutt-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:31893 Archived-At: This is a multi-part message in MIME format. --------------mmrK0s2RG58C2FZRzq3oSO9z Content-Type: text/plain; charset="UTF-8"; format=flowed Hello, I am using Dendron as a personal knowledge management solution and from time to time, need to send some meeting notes that I take to others. Typically, my meeting notes will look something like this: #### Notes 1. Steal Underpants 2. ??? 3. Profit! #### References - [Plan for world domination](outlook:) - [Contingency Plan](https://www.example.com) As you can see the "References" section includes a "link" to an Outlook GUID. I'm using the Outlook Protocol handler (More info ) to deep link to specific messages in my Inbox. Now while this works really nicely for me, it's not very useful when I share my notes with others. I'm trying to figure out if there's a way for me in Pandoc to setup a filter such that if Pandoc encounters these type of "outlook" links, it deletes the link leaving just the Link description. In other words, the output HTML for the above example would (ideally) look like this:

Contingency Plan I've tried various combinations of keywords on "url", "filter", "link" etc but that has not yielded much result. I'm pretty sure this is not a very common problem and hence I'm hoping the group can help me figure out. I should also say as I'm using pandoc at my $dayjob which is a heavily restricted environment, I'm limited to an extremely old version of pandoc (v2.2.3) which is very unfortunate but also not easily resolvable. -- Balaji Dutt -- 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/732b167f-0380-8ba6-9385-762601ee4b56%40gmail.com. --------------mmrK0s2RG58C2FZRzq3oSO9z Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,


I am using Dendron as a personal knowledge management solution and from time to time, need to send some meeting notes that I take to others. Typically, my meeting notes will look something like this:

#### Notes
1. Steal Underpants
2. ???
3. Profit!

#### References
- [Plan for world domination](outlook:<GUID>)
- [Contingency Plan](https://www.example.com)

As you can see the "References" section includes a "link" to an Outlook GUID. I'm using the Outlook Protocol handler (More info) to deep link to specific messages in my Inbox.

Now while this works really nicely for me, it's not very useful when I share my notes with others. I'm trying to figure out if there's a way for me in Pandoc to setup a filter such that if Pandoc encounters these type of "outlook" links, it deletes the link leaving just the Link description. In other words, the output HTML for the above example would (ideally) look like this:

<h4 id=3D"references>References</h4>
<ul>
<li>[Plan for world domination]</li>
<li><a href=3D"https://www.example.com>Contingency Plan</a>&=
lt;/li>
</ul>

I've tried various combinations of keywords on "url", "filter", "link" etc but that has not yielded much result. I'm pretty sure this is not a very common problem and hence I'm hoping the group can help me figure out.

I should also say as I'm using pandoc at my $dayjob which is a heavily restricted environment, I'm limited to an extremely old version of pandoc (v2.2.3) which is very unfortunate but also not easily resolvable.
--=20
Balaji Dutt

--
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://groups.google.com/d/msgid/p= andoc-discuss/732b167f-0380-8ba6-9385-762601ee4b56%40gmail.com.
--------------mmrK0s2RG58C2FZRzq3oSO9z--