Study the AZW format specification and existing pandoc writers (e.g., EPUB2) to understand how to implement a new writer. The issue references #1852 for related discussions. The main task is to create a writer module in pandoc that converts to AZW format, likely using existing HTML/EPUB functionality as a base.
writer for AZW3 (Kindle native format) · jgm/pandoc#1865 | Good First Issue