From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31663 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Substitute a string between custom delimiter in markdown file Date: Thu, 27 Oct 2022 14:58:58 +0000 Message-ID: References: <138750e5-0ff6-4854-bc5a-26b32b085dd3n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 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="13702"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBNFZ5KNAMGQEHX2VQSA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 27 16:59:06 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f61.google.com ([209.85.167.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oo4LZ-0003K5-BJ for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 27 Oct 2022 16:59:05 +0200 Original-Received: by mail-lf1-f61.google.com with SMTP id be20-20020a056512251400b004aa9aadf60csf724958lfb.20 for ; Thu, 27 Oct 2022 07:59:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666882744; cv=pass; d=google.com; s=arc-20160816; b=UCmNnqqXQo3FVphN/DZqvvfYFK9phjkXjaLoKRIoLoHPIKWO96T9Y+8lmxLfABnRYj uNPVV2OckUgT9xrubRqZ4/HqZVSQfkLjVs1d7Lo2p0R+JzQlMt5/OuFj5nfF6X2UfnEw 3P8PCPyrgoiJ+KFn7Xx9A8xeCjsOQOXr4xx7x8C6HgbtMcAannzvMbypdXqGxLCWVqEv gAOlDcJB3b0jPpp9gVlPH+bmCghEccDM0itdTftog+WS5VUmEfT7nWzuDp2vO+hhqjAt MEcA3gH5AabZrt/1F4fC1pOTZMkeT2kqHaWXtYt0QSHmiZWioPTsgt7mBykUcy7qmLNg NI3w== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=vdL0P+zmJq5k3qriAxFVGgdUDlCJrwbdsj7RVj8iAnI=; b=lscO5DsZR7seR8HnZ5xWRDUzrQBAHcDk6/jz46XFD9h3KlZfIMGkfaEEb3n3fZm7qn o8KL9Ba3+oFYfgahm0NY8/lkdgFNOK+Dtsz+NzCIDU/yRo6xkMl+ZH+82PoTu3SSiovD HQb0PQ7+5EQV4ID8W1/8JmgsCC1KIu6Kan/EO4bGrFXKrYzjBu29rn/Sq1bEEEObj3fE /VazMCEZWlxzoEyzbpW+7Kvdjv7TiIx+Oqzon7/Rl2gqy/kOg75Gc7SAUDihQBhie1uG rK/qn9XZkAtmeOHHqUrxQpWVpq6sJZz9PnagSFXxNtuI8uaPnMcdtQhA82wwHyIJX8WM cAfQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=LMCIxpHp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=vdL0P+zmJq5k3qriAxFVGgdUDlCJrwbdsj7RVj8iAnI=; b=AtqGVufND8pkDeU41eW9VoGM5G1jbHUiJGT0y02X0heQy7ftRcubIcw+0juSDqgbaQ Xz0qRs0YKw36BiDXwbV37eocOiZLs4Swvp53h2he3SdVyc9SZboRaMzAn9t5iRsKQlwI 4jay9IM8VwaO6RHeOVs2xa3TAuHt61+eAlNw/q746THZS6SA9QEcc53D5TdfSbXxq4Rn JkjBMiJ8lGW/x2ZxPlFD2aW83etkLI7JUR6lhhlLlZWO4oZkCcbgaadm5uVbyoKhNCeZ oJtGdcjuksT/Od9EU75tGfFHMesGYY9ar594+10VW4/X/ 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=vdL0P+zmJq5k3qriAxFVGgdUDlCJrwbdsj7RVj8iAnI=; b=KtL4sRSsklQybH9ZbPGh6Nu+V6QWoDmZVIk8gb8XRFApMuRE/LnliGdGO2z53DYlBg SiLQAvCSnHPuBUTp0mcxhXa3iQkRJVXUqu40v4kbXqaxlK+poXptCSmeuSC7Vu0VGM5D SFY7TONxRdvTiIokvakUG1KbGJ7Xkv7B4ogLvvs6YLrJGPc8ih02fWSlksMcsb4Z2avS 2IHZ8zaX/C7R6eH3rwt+y3gXJ14hlO5J9vjy+ZpJaza7dmNZg/i+BdBVoUFVZ3xuam6T Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2molFcPdZtVSoimrxDfM40C3PZbXauCnQbq+dEknDQEqmTdcyO KB04+y1rgiXGCDlvTQMe1yU= X-Google-Smtp-Source: AMsMyM7OO/rUswAvAPZVOlWKtt0eRFxj+NvGamZHSQu199cTBwUekDgsceVgzZtxtbNUZWb0H9Vy9w== X-Received: by 2002:a05:6512:3503:b0:496:55d:a186 with SMTP id h3-20020a056512350300b00496055da186mr17803045lfs.340.1666882744845; Thu, 27 Oct 2022 07:59:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:1186:b0:4a2:3951:eac8 with SMTP id g6-20020a056512118600b004a23951eac8ls423230lfr.0.-pod-prod-gmail; Thu, 27 Oct 2022 07:59:00 -0700 (PDT) X-Received: by 2002:ac2:5de5:0:b0:4a2:2f3c:5db2 with SMTP id z5-20020ac25de5000000b004a22f3c5db2mr18484743lfq.635.1666882740023; Thu, 27 Oct 2022 07:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666882740; cv=none; d=google.com; s=arc-20160816; b=AJL3Shg9OkZ8+bSLjQ16hebbV8fgDWXNWpT1Pcwi3FLUQ/xHKvqgHxcCoWoJ2+k7kK 0Gi7+Ou7YnbSEllNRd56DsC+ueon+KEnWQ76MM9H9junMP3Si4W6rApj5MVpoKBl7Syn z3CW2yBTIRNBbxf4mi/PnXqacRwFhOslKyUW5X8P5sodBwfnwb9xvGxtwk5lHLtK/n/s FXHbZVdaSdWDdZjH106Z1ubN9XtRpIDYztSBT1RB92kYuxTlyCKijOPFsIN9FJgJVRPv sL1mF/uXVn89D4kMUrCUdG4MdiTlvqpnL/VzgzaG4AgXqM2/dmUrqT7Gim/kfrij7bZ+ mirA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=zKKynEDINJ4qP9xEhAi3JENBuEDNBPYPgYP85kniJzw=; b=XRnwr4AjH58kNkZ8zzx3zJGR66FeV79RbVIbkLVAerpJkn0vwstNEwzLMIxo9MgdeJ eWfxksnxegxeBaYjfHN+4TqeMgmpo0JsoM/q+izHdpYztnsJpMOcoXue1nlyR2CaZwxF P3LIGAFMBH8rdhgbDUMzqdKuBVVWcUtclZxxhLaDyOJ6HQiJ5OlXObZ9fZT1DX+8v/9M qV8h6RAlboNl0UJgtF6xFvDTmpfXF0ad+4PySwv+jPrfWxv6FUa8XD50t4hpPK6ei6i7 CcekuAejbdwmO3/Qpg9ulJvy9MHTSH16kkjdNvb9Agu2K2xZTeymyr9WQB0XsFf35iaR IYow== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=LMCIxpHp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id k9-20020a2ea269000000b002772ff50da3si26947ljm.7.2022.10.27.07.58.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 07:58:59 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 50CA0240105 for ; Thu, 27 Oct 2022 16:58:59 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MypjG6NvBz6tmK for ; Thu, 27 Oct 2022 16:58:58 +0200 (CEST) Content-Disposition: inline In-Reply-To: <138750e5-0ff6-4854-bc5a-26b32b085dd3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=LMCIxpHp; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:31663 Archived-At: Is it mandatory for you to use this syntax? It would be easier with spans: [Gianluca]{.personaldata .name} [Via anon]{.personaldata .address} Then, if you want them to be printed, do nothing. If you want them to be ma= sked, pass a filter like: function Span(span) if span.classes:includes('personaldata') then span.content =3D pandoc.Str('xxxxxxx') end return span end Le Thursday 27 October 2022 =C3=A0 07:06:03AM, Gianluca Carbone a =C3=A9cri= t : > Hello guys, >=20 > I try to process a markdown file where I put some custom delimiter like: >=20 > [name] Gianluca [\name] > [address] Via anon [\address] >=20 > What I want to do is write some custom writer or a filter in pandoc that = can > substitute the content of that delimiter with "xxxxxxx", in order to hide > personal information. >=20 > How can I write some line of code that return me a markdown document anon= imized > ? >=20 > Thanks in advance! >=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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/138750e5-0ff6-4854-bc5a-26b32b085dd3n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/138750e5-0ff6-4854-b= c5a-26b32b085dd3n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=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/Y1qcstItC44BCEdd%40localhost.