THE GITHTML FIELD GUIDE
Select the Pandoc Markdown reader that matches your source
Set Pandoc's input format deliberately when the source relies on a particular Markdown dialect or extension. Compare a small feature fixture before converting the full document. A successful conversion only proves that Pandoc produced output; inspect whether tables, notes, links, and literal examples retained the meaning your readers need.
Identify the source convention before changing output flags
Start with the file's authoring requirements, not the desired output appearance. A README written for GitHub may use constructs that differ from Pandoc's default Markdown interpretation. List the essential features and check how the installed Pandoc version names its readers and extensions. Use the local help and format listing to confirm availability rather than copying options from an unrelated version. Keep a record of the reader choice in the conversion instructions. Otherwise two maintainers can run similar commands and produce subtly different documents from the same source, leaving reviewers to mistake parsing differences for content changes.
Compare readers with a harmless fixture
Create a small file containing the constructs that matter to your guide, such as a pipe table, a task list, and an ordinary link. Convert it with the explicit reader shown in the sample, then inspect the HTML rather than assuming every GitHub website feature is covered by the gfm reader. Platform conveniences and parser syntax are not the same contract. If a required extension is unavailable or behaves differently, choose a documented adjustment or a clearer source representation. Avoid enabling a large collection of extensions speculatively. Each additional feature increases the authoring assumptions that future contributors must understand.
pandoc --version
pandoc --list-input-formats
pandoc fixture.md --from=gfm --to=html5 --standalone --output=fixture.htmlRecord semantic checks alongside the command
Compare the generated text, link destinations, heading structure, and literal code examples with the source. Highlighting and visual polish are secondary to preserving meaning. Use the fixture again when Pandoc is upgraded or when the source convention changes. Keep converter warnings with the review notes and investigate any feature that is silently displayed as punctuation. The output file is a separate artifact: if you intend to read it in gitHtml, commit the externally generated HTML through your normal repository workflow. The reader does not select Pandoc settings, run the conversion, or infer which Markdown extensions the author intended. Keep a copy of the accepted fixture output for review, but do not confuse byte-for-byte equality with semantic correctness. Harmless formatting changes can coexist with identical meaning.
- List required Markdown constructs and verify the installed reader names.
- Convert a small fixture using an explicit input format before processing the handbook.
- Check semantics and copied examples, not only whether an HTML file exists.
- Keep the reader and extension choices with the repeatable local build instructions.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.