# Convert and Publish Markdown

Convert and Publish Markdown on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**751**

Forks**87**

Open issues**16**

PowerShell Gallery downloads**5638858**

Release**v3.6.2**

Language: C# Updated: 2026-11-30

Documentation

Convert Markdown to styled HTML, convert HTML back to Markdown, and configure links and images for a safe publishing workflow.

Markdown is often the editable source while HTML is the delivery artifact. Keep that ownership clear: update Markdown, regenerate HTML, and avoid hand-editing both representations.

## Publish HTML

`ConvertTo-OfficeMarkdownHtml` supports fragment or document output, visual themes, CSS delivery modes, anchor links, task lists, footnotes, external-link attributes, and explicit URL or image restrictions.

```powershell
ConvertTo-OfficeMarkdownHtml -Path '.\Runbook.md' `
    -OutputPath '.\Runbook.html' -DocumentMode `
    -Title 'Operations runbook' -IncludeAnchorLinks
```

The [publish-HTML recipe](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Markdown/Recipe-Markdown-PublishHtml.ps1) creates a runbook and publishes a complete HTML document.

## Bring HTML back

Use `ConvertFrom-OfficeMarkdownHtml` for imported web fragments or articles. Base64 image handling, output directories, and URL policies should be chosen explicitly when the HTML is not fully trusted. Conversion preserves useful document meaning but is not expected to reproduce every browser layout detail.

<!-- PowerForge markdown artifact sha256:075F5158268E7E8F787BB0F7DA64B6E8D1E9E8A8D47EA2593B440A11C1013D47 -->
