From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: How to find and replace all sensitive text contents in lua filter
Date: Sat, 6 May 2023 11:19:12 -0700 [thread overview]
Message-ID: <61B2BF69-08EC-4807-8AAB-7D7722CE754E@gmail.com> (raw)
In-Reply-To: <46B990F1-1C41-4EC5-AE1F-D461B3173690-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
See https://github.com/jgm/pandoc/issues/7579#issuecomment-928794833
> On May 6, 2023, at 11:17 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> This is awkward to deal with, yes.
>
> You can perhaps create a filter that joins consecutive Str and Space elements into a single Str.
>
> Then apply your search/replace filter.
>
>> On May 6, 2023, at 7:36 AM, jiewuza <jiewuza-9Onoh4P/yGk@public.gmane.org> wrote:
>>
>> I want to find and replace all string, say "password", with "***",
>> in lua filter.
>>
>> I checked the "word count" example in the manual. But I have no
>> idea how to deal with such cases like "...**pass**word...", the
>> sensitive string is separated in different tags.
>>
>> Has anybody done this in lua filter before?
>> --
>>
>>
>>
>>
>> ----Android NewsGroup Reader----
>> http://www.piaohong.tk/newsgroup
>>
>> --
>> 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/u35okk%2437l%241%40ciao.gmane.io.
>
next prev parent reply other threads:[~2023-05-06 18:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-06 14:36 jiewuza
2023-05-06 18:17 ` John MacFarlane
[not found] ` <46B990F1-1C41-4EC5-AE1F-D461B3173690-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-05-06 18:19 ` John MacFarlane [this message]
2023-05-08 15:55 ` jiewuza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61B2BF69-08EC-4807-8AAB-7D7722CE754E@gmail.com \
--to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).