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
This ShowDemo module is fantastic! I like this more than the python lookatme terminal slideshow.
Great work on this!
I'm having trouble with running any command in a demo that would result in colored output showing up badly in the exported markdown demos.
I'm calling the script like this
export-Demo-From ./-OutputPath ./test.md
My demo script named Dots.demo.ps1 has this content
# 1. Test with numbers first1..10# 2. Test with ls with ForEach-Object next exports to markdown nicely (default printing does not have ansi color)
ls |ForEach-Object { $_.Fullname }
# 3. Show PSVersion table$psversiontable.psVersion.ToString()
# 4. Get ShowDemo module version
(Get-Module-Name ShowDemo |Select-Object-ExpandProperty Version).ToString()
# 5. Exports to mark down with some gross ansi coloring
ls
# 6. Test with some numbers (still bad)1..10
And results in this markdown output (I'm attaching the file as well in case the web view is not sufficient) test.md
This test is with my $profile completely blanked out, so no fancy prompts or any modules loaded except showdemo of course.
As soon as any command outputs something that includes color (ls - or Get-ChildItem in this case) it outputs badly and never goes back to a non-bad format.
I'm starting to snoop around the code base for ideas of how to solve this. Do you have any ideas on what might be going on here?
### 1. Test with numbers first
```PowerShell
1..10
1
2
3
4
5
6
7
8
9
10
2. Test with ls with ForEach-Object next exports to markdown nicely (default printing does not have ansi color)
This ShowDemo module is fantastic! I like this more than the python lookatme terminal slideshow.
Great work on this!
I'm having trouble with running any command in a demo that would result in colored output showing up badly in the exported markdown demos.
I'm calling the script like this
My demo script named Dots.demo.ps1 has this content
And results in this markdown output (I'm attaching the file as well in case the web view is not sufficient)
test.md
This test is with my $profile completely blanked out, so no fancy prompts or any modules loaded except showdemo of course.
As soon as any command outputs something that includes color (ls - or Get-ChildItem in this case) it outputs badly and never goes back to a non-bad format.
I'm starting to snoop around the code base for ideas of how to solve this. Do you have any ideas on what might be going on here?
2. Test with ls with ForEach-Object next exports to markdown nicely (default printing does not have ansi color)
3. Show PSVersion table
$psversiontable.psVersion.ToString()
4. Get ShowDemo module version
5. Exports to mark down with some gross ansi coloring
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m �[32;1m---- �[0m �[32;1m -------------�[0m �[32;1m ------�[0m �[32;1m----�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m -a--- 6/21/2024 2:15 PM 487 �[33;1mDots.demo.ps1�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m -a--- 6/21/2024 2:13 PM 10341 test.md�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m �[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m �[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m### 6. Test with some numbers (still bad)�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m
PowerShell�[0m �[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m1..10�[0m �[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m
�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 1�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 2�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 3�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 4�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 5�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 6�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 7�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 8�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 9�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m 10�[0m
�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[32;1m�[0m�[33;1m�[0m �[0m
The text was updated successfully, but these errors were encountered: