Notices: This section not yet converted to new layout. Download stats are rolling back out.

Markdown Generator

1.0.2

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 4/4/2018.

This tool is an executable that tries to solve common problems for people who write with markdown documents.

To install Markdown Generator, run the following command from the command line or from PowerShell:

C:\> choco install markdown-generator

To upgrade Markdown Generator, run the following command from the command line or from PowerShell:

C:\> choco upgrade markdown-generator

Files

Hide
  • tools\Uninstall-ChocolateyPath.psm1 Show
    function Uninstall-ChocolateyPath {
    param(
      [string] $pathToUninstall,
      [System.EnvironmentVariableTarget] $pathType = [System.EnvironmentVariableTarget]::User
    )
      Write-Debug "Running 'Uninstall-ChocolateyPath' with pathToUninstall:`'$pathToUninstall`'";
    
      #get the PATH variable
      $envPath = $env:PATH
      #$envPath = [Environment]::GetEnvironmentVariable('Path', $pathType)
      if (!$envPath.ToLower().Contains($pathToUninstall.ToLower())) {
        Write-Host "PATH environment variable does not have $pathToUninstall in it."
        return
      }
    
      Write-Host "PATH environment variable has $pathToUninstall in it. Removing..."
      $actualPath = [Environment]::GetEnvironmentVariable('Path', $pathType)
    
      # escape regex metachars, match possible backslash and item separator at eol
      $pathToUninstallRegex = ($pathToUninstall -replace '([\\().])', '\$1') + '\\?(;|$)'
    
      # remove pathToUninstall from actualPath
      $actualPath = $actualPath -replace "$pathToUninstallRegex", ''
    
      if ($pathType -eq [System.EnvironmentVariableTarget]::Machine) {
        $psArgs = "[Environment]::SetEnvironmentVariable('Path',`'$actualPath`', `'$pathType`')"
        Start-ChocolateyProcessAsAdmin "$psArgs"
      } else {
        [Environment]::SetEnvironmentVariable('Path', $actualPath, $pathType)
      }
    
      # remove from path of current powershell session
      $envPSPath = $env:PATH
      $env:Path = $envPSPath -replace "$pathToUninstallRegex", ''
    }
  • tools\chocolateyuninstall.ps1 Show
    $packageName = 'markdown-generator'
    $toolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
    $unPath = Join-Path $toolsPath 'Uninstall-ChocolateyPath.psm1'
    $binRoot = Get-ToolsLocation
    $installPath = Join-Path $binRoot $packageName
    
    # Remove environment path windows
    Import-Module $unPath
    Uninstall-ChocolateyPath $installPath 'User'
    
    # Remove folder
    Write-Host "Remove Folder $packageName"
    if (Test-Path $installPath) {
        Remove-Item -Path $installPath -Recurse -Force
    }
    
    # Remove shortcut in desktop
    #Write-Host "Remove Desktop ShortCurt..."
    #$desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
    #$desktop = Join-Path $desktop "$packageName.lnk"
    #Write-Host $desktop
    #if (Test-Path $desktop) {   
    #    Remove-Item -Path $desktop
    #}
    
    # Remove shortcut in start menu
    #Write-Host "Remove StartMenu ShortCurt..."
    #$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    #$programs = Join-Path $programs "$packageName.lnk"
    #Write-Host $programs
    #if (Test-Path $programs) {
    #    Remove-Item -Path $programs
    #}
  • tools\chocolateyinstall.ps1 Show
    $packageName = 'markdown-generator'
    $exeName = 'MarkdownGenerator.exe'
    $url = 'https://github.com/juniorgasparotto/MarkdownGenerator/releases/download/1.0.2/MarkdownGenerator.zip'
    $binRoot = Get-ToolsLocation
    $installPath = Join-Path $binRoot $packageName
    $checksum = '2F7F2728B882CD8A94A83FC8926842F837F77E903EC331F1A068D29023BEF293'
    $checksumType = 'sha256'
    
    # Download and unzip file
    Install-ChocolateyZipPackage -PackageName $packageName `
                                 -Url $url `
                                 -UnzipLocation $installPath `
    							 -Checksum $checksum `
                                 -ChecksumType $checksumType
    
    # Create environment path in windows
    Install-ChocolateyPath $installPath 'user'
    
    # Create shortcut in desktop
    #Write-Host "Create Desktop ShortCurt..."
    #$desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
    #$desktop = Join-Path $desktop "$packageName.lnk"
    #Write-Host $desktop
    #Install-ChocolateyShortcut -shortcutFilePath $desktop -targetPath "$installPath/$exeName"
    
    # Create shortcut in start menu
    #Write-Host "Create StartMenu ShortCurt..."
    #$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    #$programs = Join-Path $programs "$packageName.lnk"
    #Write-Host $programs
    #Install-ChocolateyShortcut -shortcutFilePath $programs -targetPath "$installPath/$exeName"

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Glauber D. Gasparotto Junior

Tags

Version History

Version Downloads Last updated Status
Markdown Generator 1.0.1 155 Wednesday, January 17, 2018 approved

Discussion for the Markdown Generator Package

Ground rules:

  • This discussion is only about Markdown Generator and the Markdown Generator package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Markdown Generator, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok