You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a docs writer we need to format About topics in Markdown so that they render in docs.microsoft.com according to our style guides and formatting standards. However, Get-Help needs the about topics to be in plaintext and limited to 80 columns. PlatyPS has a hard time converting markdown tables and other complex structures.
Version(s) of document impacted
Impacts 6 document
Impacts 5.1 document
Impacts 5.0 document
Impacts 4.0 document
Impacts 3.0 document
Proposed Solution
Pandoc is an open source tool that converts documents to/from many different formats. See http://pandoc.org/ for complete information.
The following simple PowerShell script shows how Pandoc can be used to convert from Markdown to plain text.
About topics will still need to be specially formatted for the Pandoc conversion. However, the results will work well for both Docs publishing and plain text output.
Pandoc indents fenced code blocks 4-spaces in the plain text output
Pandoc indents tables 2-spaces in the plain text output
Build automation will need to be changed to use Pandoc to convert About topics while continuing to use PlatyPS for cmdlet help.
Pandoc is open source released under GPL. Need to clear this we Legal.
The text was updated successfully, but these errors were encountered:
Issue Details
As a docs writer we need to format About topics in Markdown so that they render in docs.microsoft.com according to our style guides and formatting standards. However, Get-Help needs the about topics to be in plaintext and limited to 80 columns. PlatyPS has a hard time converting markdown tables and other complex structures.
Version(s) of document impacted
Proposed Solution
Pandoc is an open source tool that converts documents to/from many different formats. See http://pandoc.org/ for complete information.
The following simple PowerShell script shows how Pandoc can be used to convert from Markdown to plain text.
Caveats
The text was updated successfully, but these errors were encountered: