RepoPilot

jgm / pandoc

Search jgm/pandoc

GitHub

Code

How jgm/pandoc is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new input format reader

  • Add reader function export and format routing to src/Text/Pandoc/Readers.hs.
  • Register format identifier and MIME type mappings in src/Text/Pandoc/Format.hs.
  • Define any reader-specific options in src/Text/Pandoc/Options.hs ReaderOptions type.

Add a new output format writer

  • Export writer function and add format routing (evidence of Writers.hs not in file list but inferred from architecture).
  • Define writer-specific options in src/Text/Pandoc/Options.hs WriterOptions type.
  • Register format identifier in src/Text/Pandoc/Format.hs.

Add support for a new citation/bibliography format

  • Add bibliography processing to src/Text/Pandoc/Citeproc.hs to integrate with citation engine.
  • Add CSL JSON conversion utilities in src/Text/Pandoc/Citeproc/CslJson.hs if format bridges to CSL.

Add custom document processing with filters

  • Implement filter logic as external process that reads JSON-serialized AST from stdin.
  • Use filter execution pipeline in src/Text/Pandoc/Filter.hs to transform documents.
  • Invoke via command-line --filter option handled in src/Text/Pandoc/App/CommandLineOptions.hs.

Change the public API

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points116 per file on average
  • Code issues0 errors, 8 warnings
  • Largest file1,513 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CICircleCI · GitHub Actions9 workflows
  • Tests2,148 test files537 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: pandoc-lua-engine/test/lua/module · pandoc-lua-engine/test/lua · pandoc-lua-engine/test

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.