THE GITHTML FIELD GUIDE
Choose CommonMark or GitHub-flavored Markdown deliberately
Choose the Markdown dialect supported by your publishing pipeline rather than assuming all Markdown behaves the same. CommonMark defines a shared core; GitHub-flavored Markdown adds specified features, while GitHub's website also provides platform behavior beyond that specification. Build a small feature fixture before committing a large documentation set to a particular syntax.
Inventory features instead of debating labels
List the constructs the document actually uses: headings, links, tables, task lists, footnotes, math, and raw HTML. Mark each as essential or optional. A basic reference page may need only the shared core, while a research note may depend on citation handling from a specific converter. The name Markdown is not enough to establish portability. Also distinguish the parser from the hosting surface: issue references, user mentions, sanitization, and platform-specific alerts can involve behavior outside a dialect's formal syntax. This inventory gives you concrete requirements to compare with the tools already used by the project.
Create a small cross-renderer fixture
Use one short example of each essential feature in a single test file. Run it through the repository preview and the local export tool with explicit input settings where supported. Record whether each construct is rendered correctly, shown as source, or transformed in an unexpected way. Do not test by converting a large handbook first; too many unrelated differences make diagnosis slow. Choose a preferred source convention and define fallbacks for unsupported features. For example, a task list can become a plain status list when interactivity is unnecessary, while essential mathematical notation needs a more careful representation decision.
# Dialect fixture
- [ ] Sample task
| Field | Value |
| --- | --- |
| mode | preview |
A plain [reference](https://example.com).Keep the dialect decision with the build instructions
Document the processor, version policy, enabled extensions, and accepted fixture output near the authoring guidance. Re-run the fixture when dependencies change. A parser upgrade may correct one ambiguity while changing a previously accepted edge case. Avoid promising that a file works everywhere merely because two previews look similar. The useful claim is narrower: these specific constructs have been checked in these publication paths. If the final reader consumes HTML, convert the source externally and inspect the resulting document. The choice of Markdown dialect belongs to the authoring and build process, not to gitHtml's HTML reading feature. Retain a plain-language fallback for optional features. An unsupported decorative extension should not prevent readers from understanding a prerequisite, identifying a risk, or locating the next step.
- Inventory required constructs and distinguish syntax from hosting-platform conveniences.
- Build one compact fixture covering the essential features and meaningful edge cases.
- Record exact input-format choices and extension settings with the local build instructions.
- Retest the fixture after parser upgrades before converting the full documentation collection.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.