* Substitute a string between custom delimiter in markdown file @ 2022-10-27 14:06 Gianluca Carbone [not found] ` <138750e5-0ff6-4854-bc5a-26b32b085dd3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Gianluca Carbone @ 2022-10-27 14:06 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 832 bytes --] Hello guys, I try to process a markdown file where I put some custom delimiter like: [name] Gianluca [\name] [address] Via anon [\address] 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. How can I write some line of code that return me a markdown document anonimized ? Thanks in advance! -- 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/138750e5-0ff6-4854-bc5a-26b32b085dd3n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 1162 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <138750e5-0ff6-4854-bc5a-26b32b085dd3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Substitute a string between custom delimiter in markdown file [not found] ` <138750e5-0ff6-4854-bc5a-26b32b085dd3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-10-27 14:58 ` Bastien DUMONT 0 siblings, 0 replies; 2+ messages in thread From: Bastien DUMONT @ 2022-10-27 14:58 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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 masked, pass a filter like: function Span(span) if span.classes:includes('personaldata') then span.content = pandoc.Str('xxxxxxx') end return span end Le Thursday 27 October 2022 à 07:06:03AM, Gianluca Carbone a écrit : > Hello guys, > > I try to process a markdown file where I put some custom delimiter like: > > [name] Gianluca [\name] > [address] Via anon [\address] > > 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. > > How can I write some line of code that return me a markdown document anonimized > ? > > Thanks in advance! > > > -- > 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/msgid/ > pandoc-discuss/138750e5-0ff6-4854-bc5a-26b32b085dd3n%40googlegroups.com. > > References: > > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/138750e5-0ff6-4854-bc5a-26b32b085dd3n%40googlegroups.com?utm_medium=email&utm_source=footer -- 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/Y1qcstItC44BCEdd%40localhost. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-27 14:58 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-10-27 14:06 Substitute a string between custom delimiter in markdown file Gianluca Carbone [not found] ` <138750e5-0ff6-4854-bc5a-26b32b085dd3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-10-27 14:58 ` Bastien DUMONT
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).