internal/blocks/SystemMessage.ps1
Register-EBMarkdownBlock -Name SystemMessage -Converter { param ($Data) [System.Text.StringBuilder]$sb = $Data.StringBuilder $null = $sb.AppendLine('<table class="systemmessage">') $null = $sb.AppendLine('<tr>') $string = $Data.Lines -join "<br/>" | ConvertFrom-MarkdownLine $null = $sb.AppendLine(('<td><p class="systemmessage">{0}</p></td>' -f $string)) $null = $sb.AppendLine('</tr>') $null = $sb.AppendLine('</table>') # Create new firstpar $true } |