platyPS icon indicating copy to clipboard operation
platyPS copied to clipboard

Update-MarkdownHelp should preserve original formatting

Open akromm-zz opened this issue 8 years ago • 4 comments
trafficstars

Some documentation improvements were reverted by platyPS in PR: https://github.com/Azure/azure-powershell/pull/4110

Is it possible to have these improvements incorporated into PlayPS?

akromm-zz avatar Aug 10 '17 16:08 akromm-zz

The problem is in the module page update scenario.

vors avatar Aug 23 '17 06:08 vors

@akromm To clarify, you are expecting customisation of CommonParameters parameter description to be persisted and not replaced after calling Update-Markdownhelp. Is this correct?

BernieWhite avatar Dec 02 '17 09:12 BernieWhite

specifically these lines and associated comments: https://github.com/Azure/azure-powershell/pull/4110/files#diff-4582852f4910d3e13317d17da3c05028L11 https://github.com/Azure/azure-powershell/pull/4110/files#diff-20ae1ad2bf261311458a2e12a49094e9L305

Links in descriptions are not handled properly.

akromm-zz avatar Dec 04 '17 18:12 akromm-zz

There are 2 issues here:

  1. Update-Markdown help get the current help text from Get-Help (which gets it from MAML). The conversion to MAML remove hyperlinks and some other formatting that we want to preserve in the markdown source being updated.
  2. Update-Markdown is hard-coded to rewrite the CommonParmaters block, overwriting any changes made. The changes made in the linked example were to fix the markdown syntax for the hyperlink. This markdown error has been fixed in the latest builds.

sdwheeler avatar Apr 04 '22 19:04 sdwheeler