If it's related to that, are there any options in Pandoc to skip or resolve it?
Also, verify that your issue is not actually with reading the JSON.
Try pandoc -f json -t native
If this raises an error, then the issue is in how your JSON is formatted.
On Sep 12, 2022, at 12:24 PM, John MacFarlane <fiddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Generally this shouldn't happen; writers should be able to handle arbitrary ASTs.
> So let us know the particulars. Give a short example sufficient to reproduce the issue you're seeing.
>
>> On Sep 12, 2022, at 11:28 AM, Harsh Donga <ha...-7+aFW328pE6p1wGUEcWPqti2O/JbrIOy@public.gmane.org> wrote:
>>
>> Hey folks,
>>
>> Context : I am trying to convert Pandoc AST to HTML
>>
>> I would like to know if there is any exception handling done if let's say a particular block in Pandoc AST is erroneous (wrongly structured or placed).
>> For now, pandoc command (pandoc -t html pandoc.json -o pandoc.html), returns
>> err at block[x][y]
>> That is the whole conversion fails.
>>
>> Can that particular element be skipped or something else can be done?
>>
>>
>> Thanks in advance!
>> Regards,
>> Harsh
>>
>> --
>> 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ab7b37d0-be67-4e93-8298-31f7069fe2a8n%40googlegroups.com.
>