Blazor Server host

Polished documents, rendered through selected templates and rules.

About MDPolish

Rules

13 discovered rules

Each rule is discovered through the shared rule interface and written into SQL at startup.

Templates using rules

2 templates

Templates compose from this library; instances only inherit, disable, and override.

Variables

23 surfaced variables

Variable definitions become available automatically when the discovered rule exposes them.

Rule

Body

Body

Identifies the cover letter body and closing content after the salutation.

Rule id: coverletter.body

  • Cover Letter coverletter
  • Paragraph Spacing After

    Controls the spacing after rendered body paragraphs in the final document layout.

    coverletter.body body.paragraphSpacingAfter
  • Separator Handling

    Controls whether markdown separator lines such as --- are removed or rendered as horizontal rules.

    coverletter.body body.separatorHandling

Rule

Date

Date

Identifies the primary business-letter date line.

Rule id: coverletter.date

  • Cover Letter coverletter
  • Date Justification

    Controls whether the rendered date is aligned left or right in the final business-letter layout.

    coverletter.date date.justification
  • Missing Date Behavior

    Controls whether rendering fails or inserts a date when no date line is found.

    coverletter.date date.missingBehavior

Rule

Em Dash

Section

Handles em-dashes according to the selected template preference.

Rule id: common.emdash

  • Cover Letter coverletter
  • Report report
  • Em Dash Mode

    Controls how em-dashes are handled in polished output.

    common.emdash emdash.mode

Rule

Heading Depth Limit

Section

Caps excessive heading depth according to the selected template preference.

Rule id: common.heading-depth-limit

  • Report report
  • Heading Depth Maximum

    Sets the highest heading level that may remain after capping.

    common.heading-depth-limit heading-depth-limit.max-level
  • Heading Depth Limit Mode

    Controls whether heading levels deeper than the selected maximum are capped or preserved.

    common.heading-depth-limit heading-depth-limit.mode

Rule

Page Number Footer

Section

Controls the placement, format, and visibility of page numbers in the Word document footer.

Rule id: common.page-number-footer

  • Report report
  • Enable Footer

    Controls whether the page number footer is included in the rendered Word document.

    common.page-number-footer page-number-footer.enabled
  • Footer Font Size

    Controls the font size of the page number text in the footer.

    common.page-number-footer page-number-footer.font-size
  • Page Number Format

    Controls the display format of the page number in the footer.

    common.page-number-footer page-number-footer.format
  • Page Number Position

    Controls whether the page number appears on the left, center, or right side of the footer.

    common.page-number-footer page-number-footer.position
  • Show on First Page

    Controls whether the page number footer appears on the first page of the document.

    common.page-number-footer page-number-footer.start-on-first-page

Rule

Recipient Address

RecipientAddress

Identifies the recipient address block that appears between the date and salutation.

Rule id: coverletter.recipient-address

  • Cover Letter coverletter

This rule does not currently expose configurable variables.

Rule

Report Layout

Section

Defines report rendering preferences such as TOC threshold and footer page numbers.

Rule id: report.layout

  • Report report
  • Estimated Words Per Page

    Used to estimate whether the report is long enough to include a table of contents.

    report.layout layout.estimatedWordsPerPage
  • Footer Page Number Alignment

    Controls whether the page number appears on the left, center, or right side of the footer.

    report.layout layout.footerPageNumberAlignment
  • TOC Minimum Estimated Pages

    Adds a table of contents only when the report is estimated to exceed this page count.

    report.layout layout.tocMinimumEstimatedPages
  • TOC Page Break Placement

    Controls whether the renderer inserts a page break before the TOC, after the TOC, both, or neither.

    report.layout layout.tocPageBreakPlacement

Rule

Report Sections

Section

Builds report sections from markdown headings, paragraphs, and bullet lists.

Rule id: report.sections

  • Report report

This rule does not currently expose configurable variables.

Rule

Report Subtitle

Subtitle

Identifies a subtitle immediately below the report title when one is present.

Rule id: report.subtitle

  • Report report
  • Subtitle Justification

    Controls whether the report subtitle is aligned left, center, or right.

    report.subtitle subtitle.justification

Rule

Report Title

Title

Identifies the opening report title when one is present.

Rule id: report.title

  • Report report
  • Title Justification

    Controls whether the report title is aligned left, center, or right.

    report.title title.justification

Rule

Salutation

Salutation

Identifies the greeting line that opens the letter body.

Rule id: coverletter.salutation

  • Cover Letter coverletter

This rule does not currently expose configurable variables.

Rule

Semantic Spacing Normalizer

Section

Reviews the document after structural formatting and converts Markdown line behavior into appropriate Word paragraph breaks or manual line breaks, preserving author intent while preventing unwanted whitespace and layout drift.

Rule id: common.semantic-spacing

  • Cover Letter coverletter
  • Report report
  • Blank Line Preservation Mode

    Controls how blank lines in Markdown are interpreted during spacing normalization.

    common.semantic-spacing semantic-spacing.blank-line-preservation-mode
  • Break Mode for Stacked Lines

    Controls whether compact stacked metadata lines become separate Word paragraphs or manual line breaks within a single paragraph.

    common.semantic-spacing semantic-spacing.break-mode-for-stacked-lines
  • List Spacing Mode

    Controls whether bullet and numbered lists use compact or loose vertical spacing.

    common.semantic-spacing semantic-spacing.list-spacing-mode
  • Metadata Stack Detection

    Controls how aggressively the normalizer identifies sequences of short adjacent lines as compact stacked metadata blocks.

    common.semantic-spacing semantic-spacing.metadata-stack-detection

Rule

Uppercase Title

Title

Normalizes fully uppercase titles according to the selected template preference.

Rule id: common.uppercase-title

  • Report report
  • Uppercase Title Mode

    Controls how fully uppercase titles are normalized.

    common.uppercase-title uppercase-title.mode
An unhandled error has occurred. Reload x

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.