Skip to content

Commit

Permalink
ci: Fix markdown conversion in /demo
Browse files Browse the repository at this point in the history
  • Loading branch information
amis92 committed Jun 11, 2020
1 parent 352737e commit 2c55529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/demo-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# get body lines, skip first (command)
$bodyLines = $github.event.client_payload.github.payload.comment.body -split '\r?\n' | Select-Object -Skip 1
$body = $bodyLines -join "`n"
$md = ConvertFrom-Markdown $body
$md = $body | ConvertFrom-Markdown
$codeBlocks = [Markdig.Syntax.MarkdownObjectExtensions]::Descendants($md.Tokens) | Where-Object { $_ -is [Markdig.Syntax.CodeBlock] }
if ($codeBlocks) {
$scriptAst = $codeBlocks | Select-Object -First 1
Expand Down

0 comments on commit 2c55529

Please sign in to comment.