Skip to content
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
This repository was archived by the owner on Aug 11, 2026. It is now read-only.

Add support for text formatting #17

Open

Description

Currently PSDocs doesn't have any way to format text for example italic or bold without preformatting text or mashing together string literals.

Add support for formatting of text with a Format block syntax, possibly also add regex selection of words.

Example syntax:

# Text on pipeline
'Some text to bold' | Format -Style Bold

# Text in block
Format -Style Bold,Italic {
  'Some text to bold and italicise'
}

# Apply formatting only to selected regex match
'Just bold the word bold only' | Format -Match 'bold' -Style Bold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions