Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

🌟 [Major]: Introducing the Markdown module#3

Merged
Marius Storhaug (MariusStorhaug) merged 7 commits into
mainPSModule/Markdown:mainfrom
functionsPSModule/Markdown:functionsCopy head branch name to clipboard
Feb 23, 2025
Merged

🌟 [Major]: Introducing the Markdown module#3
Marius Storhaug (MariusStorhaug) merged 7 commits into
mainPSModule/Markdown:mainfrom
functionsPSModule/Markdown:functionsCopy head branch name to clipboard

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Feb 22, 2025

Copy link
Copy Markdown
Member

Description

This pull request introduces the Markdown PowerShell module with functions for generating Markdown content programmatically using a DSL.

New Functions for Markdown Generation:

  • Set-MarkdownCodeBlock: Added a function to generate fenced code blocks for Markdown using the specified language.
  • Set-MarkdownDetails: Added a function to generate collapsible Markdown details blocks with a summary title and formatted content.
  • Set-MarkdownSection: Added a function to create formatted Markdown sections with specified header levels, titles, and content.
  • Set-MarkdownTable: Added a function to convert objects from a script block into a Markdown table.

Documentation and Examples:

  • README.md: Updated the documentation to describe the new DSL commands for generating Markdown content, including headings, details, code blocks, and tables.
  • examples/General.ps1: Updated the example script to demonstrate the usage of the new DSL commands for generating a complete Markdown document.

Tests:

  • tests/Markdown.Tests.ps1: Added Pester tests for the new functions to ensure they generate the expected Markdown content.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@github-actions

Copy link
Copy Markdown

Module Markdown - v1.0.0 published to the PowerShell Gallery.

@github-actions

Copy link
Copy Markdown

GitHub release for Markdown v1.0.0 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌞 [Other]: PowerShell Markdown DSL Module Specification

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.