Skip to content

PowerShell module that helps converting HTML files into Markdown

Notifications You must be signed in to change notification settings

EvotecIT/MarkdownPrince

Repository files navigation

MarkdownPrince - PowerShell Module

MarkdownPrince is small PowerShell module that helps to convert HTML files into Markdown.

How to use

ConvertFrom-HTMLToMarkdown -Path $HTMLFile -UnknownTags Drop -GithubFlavored -DestinationPath $DestinationPath

To install

Install-Module -Name MarkdownPrince -AllowClobber -Force

Force and AllowClobber aren't necessary, but they do skip errors in case some appear.

And to update

Update-Module -Name MarkdownPrince

That's it. Whenever there's a new version, you run the command, and you can enjoy it. Remember that you may need to close, reopen PowerShell session if you have already used module before updating it.

The essential thing is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update may break your code. For example, small rename to a parameter and your code stops working! Be responsible!

Changelog

  • 0.0.8 - 2021.03.28
    • Renamed cmdlet ConvertTo-HTMLFromMarkdown (still not functional tho)
    • Updated library ReverseMarkdown to 3.19.0
  • 0.0.7 - 07.02.2021
    • Updated ReverseMarkdown.dll
  • 0.0.6 - 21.08.2020
    • General improvements
  • 0.0.5 - 20.08.2020
    • General improvements
  • 0.0.4 - 20.08.2020
    • ConvertFrom-HTMLToMarkDown
      • Improvement
  • 0.0.3 - 20.08.2020
    • ConvertFrom-HTMLToMarkDown
      • Tries to format markdown a bit
      • Allows to remove text before and after
  • 0.0.2 - 14.08.2020
    • Improvements
  • 0.0.1 - 8.08.2020
    • First draft release

3rd party libraries

MarkdownPrince uses 3rd party libraries to deliver it's functionality

  • ReverseMarkdown (MIT License) - delivers conversion from HTML to MARKDOWN
  • Markdig (BSD-Clause 2 license) - delivers conversion from MAKRDOWN to HTML (not functional yet!)

Hardwork of maintainers of those projects allows you to enjoy easy to use functionality you see here.