Changex.Formatter.Markdown (changex v0.3.0)

Format changelog to the terminal in markdown format.

Link to this section Summary

Functions

Take a map of commits in the following format

Link to this section Functions

Link to this function

format(commits, opts \\ [])

Take a map of commits in the following format:

%{
  fix: %{
    scope1: [commit1, commit2],
    scope2: [commit5, commit6]
  }
  feat: %{
    scope1: [commit3, commit4],
    scope2: [commit7, commit8]
  }
}

And return a string in the format:

# v0.0.1

## Bug Fixes

 * **Scope 1**
  * commit 1 - hash
  * commit 2 - hash
*  **Scope 2**
  * commit 5 - hash
  * commit 6 - hash

## Features

 * **Scope 1**
  * commit 3 - hash
  * commit 4 - hash
 * **Scope 2**
  * commit 7 - hash
  * commit 8 - hash