-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for rendering Markdown as HTML #228
Comments
On-hold, pending PowerShell/PowerShell#9390 (comment) (issue with running the |
PowerShell/PowerShell#9390 (comment) has been fixed, just hoping it gets into v6.2.1 |
Looks like v6.2.1 is released (https://github.com/PowerShell/PowerShell/releases/tag/v6.2.1), which also comes with the Markdown fix! Once it's released as an installer/container I'll continue with this. |
It would appear that v6.2.1 actually contained security fixes, and not what's on the release notes for the tag. Guess this is waiting till v6.2.2. |
Can finish this off now, with rendering Markdown as HTML only been supported in PS7+. |
This is to add in support for rendering Markdown files as HTML content - using the PowerShell function:
ConvertFrom-Markdown
.There should be:
markdown
function, likehtml
, that takes raw data or a file path and converts the markdown to html. At the end of the function, it should be similar to thehtml
function when render the content back as html.pode
,html
, and anything else for custom/third-party - this will add inbuilt support for a newmarkdown
type, which will get markdown files and convert them to html..md
/.markdown
file, it automatically converts it to html 🤔Get-PodeContentType
function.The text was updated successfully, but these errors were encountered: