{"version":"1.0","type":"rich","title":"convert html to docx using pandoc","description":"This example shows a Windows batch script that converts HTML files to DOCX documents using Pandoc, a universal document converter. The script accepts either a single HTML file or a folder as input, automatically detecting `index.htm` or `index.html` inside directories. It sets the output filename based on the input name, then invokes the `pandoc` command-line tool with the `-o` flag to generate the DOCX file. The script handles file and folder paths separately, checks for the output’s existence, and returns to the original working directory before pausing.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5de1632406eff1c5a5a87d10e8e64260?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}