public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* document to json
@ 2022-02-01 10:38 jgran
       [not found] ` <002e3430-c171-4af5-8b94-095c054193fdn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: jgran @ 2022-02-01 10:38 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1302 bytes --]

 Hi, 

I would like to use pandoc to transform a Word collection to json for using 
in search engines (meilisearch, tantivy or datasette for instance) and for 
learning lua-filter also!
Unfortunately I'm struggling to get content as is, say in markdown for 
paragraph. I don't get how to accumulate content in usable format. I'm lost 
among recursive Str, BulletList, etc.
I posted on StackOverFlow (Pandoc Lua Filter restructure JSON output 
<https://stackoverflow.com/questions/70834828/pandoc-lua-filter-restructure-json-output>) 
but got not answer... Sorry for this double post.

I found *pandoc.utils.stringify*, but it only returns no-spaced 
concatenated Str, so only useful for debuggin AFAIK.
Is there a *stringify *equivalent for returning content in markdown format? 
Or what's the best way to walk paragraphs (walk_block/walk_inline) for 
extracting content?
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/002e3430-c171-4af5-8b94-095c054193fdn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1802 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-06 10:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 10:38 document to json jgran
     [not found] ` <002e3430-c171-4af5-8b94-095c054193fdn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-02-01 16:26   ` Albert Krewinkel
     [not found]     ` <878ruuecx0.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-02-03 11:20       ` jgran
     [not found]         ` <ee6fd91d-76dd-4af0-b4d1-f41a584f283cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-02-06 10:04           ` Albert Krewinkel

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).