* How to find and replace all sensitive text contents in lua filter
@ 2023-05-06 14:36 jiewuza
2023-05-06 18:17 ` John MacFarlane
0 siblings, 1 reply; 4+ messages in thread
From: jiewuza @ 2023-05-06 14:36 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to find and replace all sensitive text contents in lua filter
2023-05-06 14:36 How to find and replace all sensitive text contents in lua filter jiewuza
@ 2023-05-06 18:17 ` John MacFarlane
[not found] ` <46B990F1-1C41-4EC5-AE1F-D461B3173690-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2023-05-06 18:17 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to find and replace all sensitive text contents in lua filter
[not found] ` <46B990F1-1C41-4EC5-AE1F-D461B3173690-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2023-05-06 18:19 ` John MacFarlane
2023-05-08 15:55 ` jiewuza
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2023-05-06 18:19 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to find and replace all sensitive text contents in lua filter
2023-05-06 18:19 ` John MacFarlane
@ 2023-05-08 15:55 ` jiewuza
0 siblings, 0 replies; 4+ messages in thread
From: jiewuza @ 2023-05-08 15:55 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
Thank you for the link.
--
John MacFarlane <fiddlosopher-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-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org> wrote:
----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/u3b618%2414vk%241%40ciao.gmane.io.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-08 15:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-06 14:36 How to find and replace all sensitive text contents in lua filter 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
2023-05-08 15:55 ` jiewuza
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).