BlogComparisons · November 12, 2026 · 6 min read

Contact Form 7 Report Markdown: markdown-it vs commonmark.js vs Marked vs markdown-it-py vs Goldmark

Compare five Markdown renderers for publishing Contact Form 7 summaries with predictable tables, headings, links and handling of report labels.

A weekly Contact Form 7 report can start as Markdown and end as HTML in a browser. The renderer affects what happens to tables, links, headings and labels containing punctuation. Choose it after deciding what markup the report needs and which parts of the input are controlled by the report author. This comparison covers five libraries you can run alongside an existing reporting job.

A stack of simple marked-up sheets leads to a clean formatted report
Generated conceptual illustration; not a product screenshot or measured result.

Five Markdown renderers at a glance

Renderer Runtime Good fit Verify first
markdown-it JavaScript Configurable report syntax Enabled rules and plug-ins
commonmark.js JavaScript CommonMark and AST inspection Tables need a different approach
Marked JavaScript GitHub-style report tables HTML sanitization
markdown-it-py Python Rendering alongside a Python report job Explicit HTML and preset configuration
Goldmark Go Static generation in a Go binary Version and extension configuration

These libraries work on Markdown input prepared by your application. They do not collect the original form submissions or decide what qualifies for a metric. Prepare the aggregate first, using a defined reporting window and a clear convention for zero versus missing results. For interactive sorting or filtering, consult the interactive report tables comparison after deciding how the report will be served.

markdown-it

markdown-it is an MIT-licensed JavaScript library with CommonMark support, configurable rules and extensions. It is a useful fit when a Node.js reporting job already creates a document and needs to render basic sections plus a compact table. Enable the syntax your templates expect and keep the preset and options beside the template in source control. That gives the next maintainer one place to check when a dependency update changes the appearance of a heading or table.

Its default settings disable raw HTML. The rule and plug-in system makes it possible to add output that needs additional scrutiny. Inspect any extension that turns labels into links, attributes or heading IDs. Render a small report with an ampersand, brackets and a vertical bar inside a synthetic form label. Make sure the label remains text and the rendered table has the expected columns. Add only the syntax you intend report authors to use.

commonmark.js

commonmark.js is the JavaScript reference implementation of CommonMark, described by its project as BSD-licensed. It parses input into an abstract syntax tree and can render HTML or an XML representation. This is attractive when a weekly report consists of headings, paragraphs, lists and ordinary links, and the team wants to inspect the document structure before rendering. For instance, a build can check whether the required summary heading appears and in which order the sections are emitted.

CommonMark itself does not define pipe tables. If your readers expect tables, consider rendering a separately constructed table in a trusted page template or choose a renderer with explicit support for that syntax. The HTML renderer documents a safe option that omits raw HTML and filters certain unsafe URL forms. Choose the option deliberately and keep any surrounding template subject to its own content and link policy.

Marked

Marked is an MIT-licensed JavaScript Markdown compiler available as a library and a command-line tool. It supports GitHub-flavored Markdown features and exposes a renderer and tokenizer that can be extended. A Node.js job that already emits pipe tables can use it to make a compact report page. Check how the report template handles a cell containing Markdown punctuation before giving the author a rich-text field inside a table.

The project’s documentation says its HTML output is not sanitized. Plan a separate, maintained HTML sanitization step if potentially unsafe input can reach it. Keep the sanitizer configuration and approved renderer extensions under review together. A preview in an internal browser still displays HTML and needs the same content boundary. Use fixed formatting for report labels and a URL policy that permits only the destinations your report is allowed to reference.

markdown-it-py

markdown-it-py is an MIT-licensed Python port with configurable parsing and a token stream that Python jobs can inspect. It can render the narrative at the end of a Python export job, keeping the report template with the computation and publishing workflow. Use a documented preset or explicitly select the rules needed by the report. A team can choose one test document to verify lists, code fences, headings and any enabled table behavior.

The project’s security docs distinguish its CommonMark-oriented default, which permits raw HTML, from the original JavaScript library’s default. For workflows that may include external text, the docs recommend the js-default preset. Check what your chosen options and extensions actually emit. Turning raw HTML off is a sensible starting point for labels that come from a dataset. Also encode text for the Markdown position in which it appears, because raw HTML settings alone do not keep a pipe from becoming a table delimiter.

Goldmark

Goldmark is an MIT-licensed Go parser and renderer with support for CommonMark and optional extensions. It works well when a Go command is already responsible for producing a static report. Configure the table extension documented for the version you ship if the summary relies on tables. The project documents an explicit unsafe HTML option. Keep it disabled for report data supplied by external sources, and review custom renderers that can introduce their own HTML.

Go teams should pin the module major version and consult the matching documentation. The public repository includes v2 examples, while existing applications can still use an older major version with a different import path and configuration interface. Build a sample report with headings, a summary table and long labels before changing versions. The generated HTML still needs page styling and an accessibility review in the actual output shell.

Keep one reference copy of both the Markdown and the generated HTML for a representative release. When a renderer update changes how it treats an escaped label or a multi-line table cell, compare the rendered structure and the visible text separately. A harmless difference in whitespace may need no change. A lost cell or a link that changes destination should block the template release until you understand the parser behavior. That review is easier when the fixture contains short synthetic labels that deliberately exercise each formatting rule.

Choose by the report’s simplest useful format

Try one synthetic report before wiring the renderer into the scheduled job. Include a heading hierarchy, an empty result, a label with a vertical bar and a link to a known documentation page. Compare the rendered document structure against the intended output. Check that the table is understandable with a narrow viewport and that its header cells describe the values below. Ensure labels and links remain within the formatting and destination rules you agreed on.

Start with markdown-it for a configurable JavaScript template, commonmark.js for a strict CommonMark document and AST review, or Marked when its GitHub-style syntax matches an existing template and your sanitization path is established. Use markdown-it-py if Python already owns the job, and Goldmark if Go already owns static output. The named cores are available under the open-source licenses described above without a paid library subscription. Hosting and the effort to maintain templates, extensions and output policy remain part of the cost.

Keep the rendered summary aggregate-only unless the destination is authorized for the underlying records. For WordPress-side reporting, review the official Svetlik Analytics for Contact Form 7 listing. Decide separately how approved summary metrics will reach the Markdown report job and how the resulting page will be distributed.

Sources