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

🚀 [Feature]: Add Set-MarkdownParagraph function#5

Merged
Marius Storhaug (MariusStorhaug) merged 3 commits into
mainPSModule/Markdown:mainfrom
paragraphPSModule/Markdown:paragraphCopy head branch name to clipboard
Feb 23, 2025
Merged

🚀 [Feature]: Add Set-MarkdownParagraph function#5
Marius Storhaug (MariusStorhaug) merged 3 commits into
mainPSModule/Markdown:mainfrom
paragraphPSModule/Markdown:paragraphCopy head branch name to clipboard

Conversation

@MariusStorhaug

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

Copy link
Copy Markdown
Member

Description

This pull request introduces a new function, Set-MarkdownParagraph, to generate Markdown paragraphs dynamically. It also includes tests to ensure the correct functionality of this new feature.

New function

  • Set-MarkdownParagraph:
    • Added a new function that captures the output of a script block and formats it as a Markdown paragraph. It includes options to wrap the content in HTML <p> tags.

Testing

  • tests/Markdown.Tests.ps1:
    • Added tests for Set-MarkdownParagraph to verify it can render a simple Markdown paragraph and a paragraph with HTML <p> tags.

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.1.0 published to the PowerShell Gallery.

@github-actions

Copy link
Copy Markdown

GitHub release for Markdown v1.1.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.

1 participant

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